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 ^^
A voir également:
- Execution de cron unix
- Z-cron - Télécharger - Optimisation
- Le service spouleur d'impression local n'est pas en cours d'exécution - Guide
- Il permet l’exécution des logiciels applicatifs et gère l’utilisation des ressources matérielles (mémoire, processeur, périphériques). ✓ - Forum Logiciels
- Net user des erreurs ont affecté l'exécution de la commande - Forum Windows
- Erreur d'exécution 13 incompatibilité de type ✓ - Forum Programmation
24 réponses
Merci de l'info vil_coyote :)
je configure tout et je fait mes tests de 12h a 13h...
Je vous tien aucourant
je configure tout et je fait mes tests de 12h a 13h...
Je vous tien aucourant
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 ^^
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
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?
/etc/cron
Description
The cron command is the clock daemon ...blablabla...
et comment voir s il y a un mesage dans le cronlog?
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.
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?
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?
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?
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?
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
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
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
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
! 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