Execution de cron unix
jean-mim
Messages postés
139
Statut
Membre
-
jean-mim Messages postés 139 Statut Membre -
jean-mim Messages postés 139 Statut Membre -
bonjour a tous ^^
j'aimerai savoir si "cron" est en cours d'execution....
pour cela j'ai donc tapé :
ps -ef | grep cron
et j'ai eu ce message qui c affiché :
root 362 1 0 Feb-09 ? 00:00:00 /etc/cron
ca ve dire quoi?
ensuite au cas ou il ne serai pas executé j'ai tapé :
sd cron
et j'ai eu ce message :
! cannot start cron; FIFO exists Tue Feb 12 14:24:28 2008
! **** CRON ABORTED **** Tue Feb 12 14:24:28 2008
je suis debutant... merci de m'aider ^^
j'aimerai savoir si "cron" est en cours d'execution....
pour cela j'ai donc tapé :
ps -ef | grep cron
et j'ai eu ce message qui c affiché :
root 362 1 0 Feb-09 ? 00:00:00 /etc/cron
ca ve dire quoi?
ensuite au cas ou il ne serai pas executé j'ai tapé :
sd cron
et j'ai eu ce message :
! cannot start cron; FIFO exists Tue Feb 12 14:24:28 2008
! **** CRON ABORTED **** Tue Feb 12 14:24:28 2008
je suis debutant... merci de m'aider ^^
24 réponses
- 1
- 2
Suivant
-
Merci de l'info vil_coyote :)
je configure tout et je fait mes tests de 12h a 13h...
Je vous tien aucourant -
je tape :
rm /etc/cron.d/FIFO
J'ai ce resultat :
rm: /etc/cron.d/FIFO non-existent
:S que faire? -
cela veut dire que cron tourne depuis le 9/2, son numéro de tâche est 362 et que tu ne peux pas en démarrer un deuxième
-
ok merci beaucoup !
et savez vous pourquoi lorsque j'ajoute cette ligne au crontab mon serveur unix ne s'eteint pas? :
30 12 * * 2 /usr/bin/shutdown -h now
j'ai aussi tester cette ligne :
30 13 * * 2 /usr/bin/shutdown -g300 -su
sans succes...
auriez vous une idée?
Mon but etant de vouloir programer l'extinction de mon serveur automatiquement...
est-ce un probleme de droit? comment reger ce probleme?
Merci encore ^^ -
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question -
c'est bien le cron de root et le test a été fait mardi avant 12h30 et 13h30 ?
y at-t-il un message dans le cronlog ? faire man cron pour voir ou il est, cela dépend des systèmes
faire un test:
* * * * * echo test | mail -s test destinataire
-
j'ai taper man cron ca m'a mis
/etc/cron
Description
The cron command is the clock daemon ...blablabla...
et comment voir s il y a un mesage dans le cronlog? -
sur quel système ?
-
-
Diagnostics
A history of all actions by cron can be recorded in /usr/lib/cron/log. This logging occurs only if the variable CRONLOG is set to YES in /etc/default/cron. By default this value is set to NO and no logging occurs. -
okéééééééééééééééééé
et comment faire pour metre yes?
j'ai essayé de taper :
cron -e
ca me met :
cannot start cron; FIFO EXISTS Wed Feb 13 12:56:08 2008
***** CRON ABORTED ***** Wed Feb 13 12:56:08 2008
Serais-ce le probleme? -
il faut editer le fichier /etc/default/cron, mettre CRONLOG=YES et redémarrer cron
-
Comment l'editer?
car lorsque je tape :
cron -e
ou alors
/etc/default/cron -e
j'ai le meme message d'erreu que precedement c'est a dire :
cannot start cron; FIFO EXISTS Wed Feb ...
***** CRON ABORTED ***** Wed Feb ....
Quel est le souci? -
c'est un fichier texte : vim /etc/default/cron
-
Me revoila :)
hier je n'ai pas travaillé (malade) bref
je vien de tester la commande :
vim /etc/default/cron
J'ai eu le message suivant :
vim: not found -
essaye avec vi ou n'importe quel éditeur de texte que tu utilises
-
en tapant :
vi /etc/default/cron
j'ai :
CRONLOG - Enable or disable cron's logging facility.
MAXLOGSIZE - Maximum number of 512 byte blocks in the log file before /usr/lib/cron/logchecker truncates it.
MAXRUN - Maximum number of processes cron will manage concurrently (minimum 10).
NOTESHELL - If set to yes, users submitting cron and at jobs are notified if their login shell is different from the shell that is used by cron to run jobs.
INPUT - If set to NO, the cron job input mechanism is desable: neither % nor \ are changed, removed or otherwise treated.
Voilou -
Salut,
! cannot start cron; FIFO exists Tue Feb 12 14:24:28 2008
! **** CRON ABORTED **** Tue Feb 12 14:24:28 2008
You probably killed cron improperly (kill -9?).
You should run: /etc/init.d/cron stop
To fix your problem, remove /etc/cron.d/FIFO and then start cron by running:
/etc/init.d/cron start
-jim
source : http://www.computing.net/solaris/wwwboard/forum/3043.html
vil_coyote -
-
-
Ok fallai faire defiler lol
je vien de voir [ACRONLOG=NO
jai donc mi yes a la place de no
j'ai fait :
/etc/init.d/cron stop
/etc/init.d/cron start
- 1
- 2
Suivant