[linux] Cron dfaille
Bonjour, J'ai un cron: 30 9,10,11,12,13,15,16 * * /home/user/script.txt Le script bash script.txt envoit un mail au boulot. Si je le lance manuellement, il tourne sans problème et je reçois le mail au boulot. Par contre rien via cron. Besoin d'aide car je ne suis pas un spécialiste de cron pour vérifier s'il fonctionne bien. Si je lance ps aux | grep cron , il y a bien un process en cour. J'ai vérifié la date au cas où (avec date) mais elle correcte, nous sommes bien lundi 2 août et l'heure est correcte. J'ai tué le process cron avec un kill puis ai relancé avec /usr/sbin/cron ... Là, j'ai besoin d'une aide. Comment vérifier le fonctionnement de cron? -- Alain Barthélemy [EMAIL PROTECTED] http://bartydeux.be ___ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech
Re: [linux] Cron dfaille SOLVED
Sorry. Fallait juste killer et relancer cron. Le lundi 02 août 2004, 13:30:50 ou environ Alain Barthélemy [EMAIL PROTECTED] a écrit: Bonjour, J'ai un cron: 30 9,10,11,12,13,15,16 * * /home/user/script.txt Le script bash script.txt envoit un mail au boulot. Si je le lance manuellement, il tourne sans problème et je reçois le mail au boulot. Par contre rien via cron. Besoin d'aide car je ne suis pas un spécialiste de cron pour vérifier s'il fonctionne bien. Si je lance ps aux | grep cron , il y a bien un process en cour. J'ai vérifié la date au cas où (avec date) mais elle correcte, nous sommes bien lundi 2 août et l'heure est correcte. J'ai tué le process cron avec un kill puis ai relancé avec /usr/sbin/cron ... Là, j'ai besoin d'une aide. Comment vérifier le fonctionnement de cron? -- Alain Barthélemy [EMAIL PROTECTED] http://bartydeux.be ___ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech -- Alain Barthélemy [EMAIL PROTECTED] http://bartydeux.be ___ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech
Re: [linux] Cron dfaille SOLVED
Le lundi 02 août 2004, 14:05:26 ou environ Benoît Barbier [EMAIL PROTECTED] a écrit: On Mon, 2 Aug 2004 13:30:50 +0200 Alain Barthélemy [EMAIL PROTECTED] wrote: Bonjour, J'ai un cron: 30 9,10,11,12,13,15,16 * * /home/user/script.txt Le script bash script.txt envoit un mail au boulot. Si je le lance manuellement, il tourne sans problème et je reçois le mail au boulot. Par contre rien via cron. Besoin d'aide car je ne suis pas un spécialiste de cron pour vérifier s'il fonctionne bien. Si je lance ps aux | grep cron , il y a bien un process en cour. J'ai vérifié la date au cas où (avec date) mais elle correcte, nous sommes bien lundi 2 août et l'heure est correcte. J'ai tué le process cron avec unkill puis ai relancé avec /usr/sbin/cron ... Là, j'ai besoin d'une aide. Comment vérifier le fonctionnement de cron? Normalement il doit écrire des choses dans les log tail -f /var/log/syslog Ou faire une recherche grep -i cron syslog | less Ou bien grep -i script.txt syslog | less Voir un peut ce qui se passe. Benoît -- Benoît Barbier Merci. Comme déjà dit, j'ai pu résoudre le problème en relançant bêtement cron mais en faisant 'grep -i script.txt /var/log/messages | less', j'ai pu voir que cron n'avait jamais été lancé et je me demande toujours comment il a pu être désactivé. -- Alain Barthélemy [EMAIL PROTECTED] http://bartydeux.be ___ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech