|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Membre actif
![]() Arnaud Inscription : décembre 2006 Messages : 871 ![]() |
Bonjour,
J'ai planifié une tache avec "crontab -e" */1 * * * * root /home/root/scripts/ressources.sh Ma tache ne s'execute jamais. J'ai regardé mes emails et j'ai récu cet email concernant crontab : From root@localhost.localdomain Fri Aug 3 16:02:02 2007 Date: Fri, 3 Aug 2007 16:02:01 +0200 From: root@localhost.localdomain (Cron Daemon) To: root@localhost.localdomain Subject: Cron <root@localhost> root /home/root/scripts/ressources.sh Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> /bin/sh: root: command not found Je ne comprend pas pourquoi il me dit "/bin/sh: root: command not found" !! Auriez vous une idée pour résoudre mon problème Merci d'avance Arnaud |
|
|
00
|
|
|
#2 | |
|
Membre habitué
![]() Inscription : mai 2003 Messages : 110 ![]() |
Citation:
__________________
Linux/Unix, Emacs and Free Software are evil GNU/Linux & FreeBSD powered user. ![]()
|
|
|
|
00
|
|
|
#3 |
|
Membre actif
![]() Arnaud Inscription : décembre 2006 Messages : 871 ![]() |
Bah finalement oui, j'ai regardé sur google, comme je l'ai fais hier, mais meme ici au boulot, meme problème, la tache ne démare pas !
Voir mon 1er post que j'ai modifié vous explicant le soucie... |
|
|
00
|
|
|
#4 |
|
Membre actif
![]() Arnaud Inscription : décembre 2006 Messages : 871 ![]() |
Je pense avoir trouvé le problème :
J'ai lu sur un site qu'il falait indiquer avec quel utilisateur la tache devait etre executé, j'ai donc mis root. Le soucie est que cron, interprète mon root (*/1 * * * * root /home/root/scripts/ressources.sh) comme fesant parti du chemin du script... J'ai donc modifié mon insertion avec crontab : */1 * * * * /home/root/scripts/ressources.sh Je vais voir se que cela donne, je vous tien au courant. |
|
|
00
|
|
|
#5 |
|
Membre actif
![]() Arnaud Inscription : décembre 2006 Messages : 871 ![]() |
Bon cette fois ci, j'ai un autre message d'erreur :
From root@localhost.localdomain Fri Aug 3 16:11:27 2007 Date: Fri, 3 Aug 2007 16:11:01 +0200 From: root@localhost.localdomain (Cron Daemon) To: root@localhost.localdomain Subject: Cron <root@localhost> /home/root/scripts/ressources.sh Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> TERM environment variable not set. /usr/bin/logname: no login name Je supose que je ne dois pas utiliser la variable logname, mais bon je vais pas totu réécrire mes scripts ! comment je peux viré les variables prédéfinies dans cron ? |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com