Anurag Jalan wrote:
Anurag Jalan wrote:
Hi all,
I need to run fetchnews as a 'root' cronjob
I have tried both crontab -e ( as root )
(A) /bin/bash 0-59/3 * * * * /opt/leafnode/fetchnews
I meant 0-59/3 * * * * /opt/leafnode/sbin/fetchnews
and (B) /bin/bash
0-59/3 * * * * /root/getnews
where /root/getnews is :
#!/bin/sh /opt/leafnode/sbin/fetchnews
when i run /opt/leafnode/sbin/fetchnews, FETCHNEWS works fine ...( MANUALLY )
What am i missing ?
Why do you have /bin/bash above both of your crontab entries? If you're starting with a blank crontab and want to specify the shell, you should put: SHELL=/bin/bash But if you have a normal SuSE installation there should already be a number of entries in the crontab, in which case you just need to add the second line. Make sure you're logged in as (or su'd to) root when you run 'crontab -e'. One other point - rather than '0-59/3', can't you just put '*/3'? Hope that helps, Chris -- Unfortunately I'm back on V90 (yeah, right) dialup for the rest of my life, so I apologise in advance for any time delay in replies. Thanks. __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq