Bonjour, je tente d'utiliser crontab sur mon pc, mais rien a faire,
un script simple comme lancer iceweasel, bien entendu ce n'est pas le script, c'est juste un exemple !
Mon crontab à 8h48 par exemple
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --repo$
#
# dans mon utilisateur
48 8 * * * /home/justclo/.SCRIPT/upload_SAUVSQL.sh
# ou dans le /usr/local/bin/
55 8 * * * upload_SAUVSQL.sh
Bien entendu, je rend mon scrpit utilisable
chmod +x /usr/local/bin/upload_SAUVSQL.sh
et je reload cron
/etc/init.d/cron restart
J'utilise crontab sur d'autre serveur, mais ici ca veut pas
Merci de votre aide
Dernière modification par justclo (31-12-2016 10:21:50)