Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 30 November 2024, 11:09:08 pm

Login with username, password and session length

The Latest Endian Firewall is now available for download HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Test Cron Job
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Test Cron Job  (Read 21511 times)
gtjr92
Jr. Member
*
Offline Offline

Posts: 4


« 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
Logged
StephanSch
Full Member
***
Offline Offline

Gender: Male
Posts: 57


« Reply #1 on: Saturday 12 September 2009, 07:43:01 pm »

try fcrontab instead of crontab.
Logged
NinNin
Full Member
***
Offline Offline

Posts: 24


« Reply #2 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.
Logged
StephanSch
Full Member
***
Offline Offline

Gender: Male
Posts: 57


« Reply #3 on: Monday 21 September 2009, 03:12:10 am »

how often do you wan't to start the cronjob?
Logged
NinNin
Full Member
***
Offline Offline

Posts: 24


« Reply #4 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.086 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com