- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to schedule cron jobs in linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:18 AM
тАО09-22-2008 03:18 AM
how to schedule cron jobs in linux
Can anyone tell me how to schedule cron jobs in linux(RedHat).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:21 AM
тАО09-22-2008 03:21 AM
Re: how to schedule cron jobs in linux
crontab -e /edit/
crontab -l /list jobs/
see man crontab for examples.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:27 AM
тАО09-22-2008 03:27 AM
Re: how to schedule cron jobs in linux
#crontab -l (listing the cron jobs)
#crontab -e
There will be six field
The last field be the script you want to execute.
#service crond start
#chkconf crond on
#chkconf crond --list this will be showing you on which run level cron services will be running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:28 AM
тАО09-22-2008 03:28 AM
Re: how to schedule cron jobs in linux
crontab -l for listing
crontab -e for editing
crontab -r for removeing
these are the crontab fields
do crontab -l and set your program as per your plan
minute hour monthday month weekday command
0 0-23 0 * 0 /home/abc/systemchk.sh (full path of command/program name)
Means every hour this program will run
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:30 AM
тАО09-22-2008 03:30 AM
Re: how to schedule cron jobs in linux
do crontab -e it will open the crontab file
then edit as per your plan
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:34 AM
тАО09-22-2008 03:34 AM
Re: how to schedule cron jobs in linux
what is the command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 03:44 AM
тАО09-22-2008 03:44 AM
Re: how to schedule cron jobs in linux
> Can anyone tell me how to schedule cron jobs in linux(RedHat).
Sure, ask the question in the LINUX forum!
http://forums11.itrc.hp.com/service/forums/familyhome.do?familyId=118
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 04:47 AM
тАО09-22-2008 04:47 AM
Re: how to schedule cron jobs in linux
crontab -e #EDIT CRON JOB FILE
* 0 * * * /root/scripts/verify_ignite.sh >/dev/null 2>&1
this will run this script at night 12 0 clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 05:12 AM
тАО09-22-2008 05:12 AM
Re: how to schedule cron jobs in linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 05:18 AM
тАО09-22-2008 05:18 AM
Re: how to schedule cron jobs in linux
That could just mean that you have not scheduled any jobs yet. It does NOT mean something is wrong.
Use 'crontab -e' and add your job as numerous people above have said. You might also want to do a 'man crontab' and read throught it.
>>* 0 * * * /root/scripts/verify_ignite.sh >/dev/null 2>&1
>>this will run this script at night 12 0 clock.
And it will run it at 12:01, and 12:02, and 12:03, etc.....
The '*' in the first field means ALL MINUTES of the hour.
If you want the job to run at midnight every night, then:
0 0 * * * /dir/somejob.sh
will do it.