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 > > un"kill" 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

