Results 1 to 7 of 7
I need a script to run once a month and another script to run each day at midnight. How do I do this? The server I need to set this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-16-2005 #1Just Joined!
- Join Date
- May 2005
- Location
- San Diego, CA
- Posts
- 3
Scheduled Script Execution
I need a script to run once a month and another script to run each day at midnight. How do I do this? The server I need to set this up on is running Fedora Core 2 or 3. Is there a way I can do it without the admin's help? Thanks in advance, - Jeff Jensen
- 05-16-2005 #2
It depends.
For scheduled execution, you want to use cron. The real question here is whether cron is enabled for the users.
To check, run:
If it is enabled, this will print out some stuff. If it's not, it will tell you command not found or some other thing about cron not working for you.Code:crontab -l
If it is enabled, you can find some info at:
* Our own LinuxForums tutorial:
http://www.linuxforums.org/tutorials...rial-4017.html
* The Gentoo Cron Tutorial:
http://www.gentoo.org/doc/en/cron-guide.xml
Obviously ignore all the stuff about installing cron, but the Gentoo tutorial gives some examples and all that jazz.
Hope that helps!
- 05-16-2005 #3Just Joined!
- Join Date
- May 2005
- Location
- San Diego, CA
- Posts
- 3
Alas, no crontab.
Alas, I have no crontab. Thanks a bunch for your help, I'm in touch with the admin. - Jeff Jensen
- 05-16-2005 #4Linux Enthusiast
- Join Date
- Jan 2005
- Posts
- 575
man crontab also explains things fine.
Jeff , out of curiosity what did crontab -l give you ?
- 05-17-2005 #5Just Joined!
- Join Date
- May 2005
- Location
- San Diego, CA
- Posts
- 3
"no crontab for jensen" - Jeff Jensen
- 05-17-2005 #6Linux Enthusiast
- Join Date
- Jan 2005
- Posts
- 575
This means that you have not created a crontab file.It does not
mean that you cannot use the utility.Try crontab -e This
will start some editor (probably vi) so that you can create your crontab
file.
- 05-17-2005 #7Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
"man 5 crontab" will tell you what to put in your crontab file to schedule your jobs. Feel free to ask more questions when you've read it.


Reply With Quote
