EFW Support

Support => General Support => Topic started by: gtjr92 on Saturday 12 September 2009, 05:09:45 am



Title: Test Cron Job
Post by: gtjr92 on Saturday 12 September 2009, 05:09:45 am
How Can I test a cronjob? I created one copied to the cron.weekly folder etc.

I just want to test it to make sure it will work.
I tried crontab myfilename (my actual filename) and I just get command not found.
I tried it from the root directory and the etc directory to no avail.

Thanks


Title: Re: Test Cron Job
Post by: StephanSch on Saturday 12 September 2009, 07:43:01 pm
try fcrontab instead of crontab.


Title: Re: Test Cron Job
Post by: NinNin on Monday 21 September 2009, 01:56:31 am
try fcrontab instead of crontab.

I also tried test crontab but the script never run, and I'm not see a file "fcrontab" in /etc as you refer. Could you please recommend me and others about how to configure script to run in crontab. Thank you very much.


Title: Re: Test Cron Job
Post by: StephanSch on Monday 21 September 2009, 03:12:10 am
how often do you wan't to start the cronjob?


Title: Re: Test Cron Job
Post by: NinNin on Monday 21 September 2009, 09:27:09 pm
how often do you wan't to start the cronjob?

I'd like to setup efw to restart every day around 05.00 am. The line as below I did configure for test to see the result but the efw never restart. I added the line as below in the 'crontab'.

# Test Restart every 15 min.
15 * * * * /sbin/shutdown -r now