Execution de cron unix
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
Résumé de la discussion
L'état d'exécution de cron et l'erreur « cannot start cron; FIFO exists » sont étudiés, avec l'exemple du processus affiché par ps montrant /etc/cron et un FIFO lié. Parmi les réponses, la plus pertinente propose d'arrêter cron, supprimer /etc/cron.d/FIFO et redémarrer le service, puis de vérifier que cron n'a pas été interrompu et que le FIFO réapparaît. D'autres contributions suggèrent d'activer CRONLOG via /etc/default/cron, d'interroger man cron, et de tester la configuration avec crontab -e ou une tâche simple comme un mail, puis de vérifier les messages dans le cronlog.
-
oké pa bete ca!! je test ca demain et je te tiens au courant debu d'aprem ;)
++ -
Contributeurenvoyer un mail toute les minutes, juste pour tester si cron fonctionne
-
Contributeurfaire un test, à ajouter avec crontab -e :
* * * * * echo test | mail -s test destinataire -
Probleme toujour pas résolu :(
up !! -
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 -
^^
-
si ça peut aider ! :-)
bip bip !
vil_coyote -
je tape :
rm /etc/cron.d/FIFO
J'ai ce resultat :
rm: /etc/cron.d/FIFO non-existent
:S que faire? -
Merci de l'info vil_coyote :)
je configure tout et je fait mes tests de 12h a 13h...
Je vous tien aucourant -
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 -
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 -
Contributeuressaye avec vi ou n'importe quel éditeur de texte que tu utilises
-
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 -
Contributeurc'est un fichier texte : vim /etc/default/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? -
Contributeuril faut editer le fichier /etc/default/cron, mettre CRONLOG=YES et redémarrer cron
-
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? -
ContributeurDiagnostics
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. -
serveur unix sco (commercial)
pc hp proliant... -
Contributeursur quel système ?
- 1
- 2
Suivant