- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron scheduling
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
Forums
Discussions
Discussions
Discussions
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
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
11-07-2001 11:19 AM
11-07-2001 11:19 AM
cron scheduling
I was wondering how to schedule a cron job to take place on an hourly basis? I greatly appreciate your help!!
Thank you...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:25 AM
11-07-2001 11:25 AM
Re: cron scheduling
put this in a file
crontab filename
to set it up under cron
crontab -l
lists cronjobs
man crontab will list the fields
Eileen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:26 AM
11-07-2001 11:26 AM
Re: cron scheduling
00 0-23 * * * command string
That should take care of hourly scheduling
Good Luck
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:26 AM
11-07-2001 11:26 AM
Re: cron scheduling
To run a job hourly try this command in your crontab file. If you don't have a crontab file, create one using crontab -e. To check your current crontab file do, crontab -l. Edit this file and put and entry in it as shown below to run the job each hour, every day, throughout the year. Do a man crontab for more info and to create your custom cron job.
00 x x x x /path_to_the_job
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:28 AM
11-07-2001 11:28 AM
Re: cron scheduling
00 * * * * would work. See man pages of crontab for more detailed examples.
-USA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:28 AM
11-07-2001 11:28 AM
Re: cron scheduling
G #go to bottom of file
o #add line blow
00 * * * * /your/script/to/run/on/hour #your entry
:wq!
Will run the script on the hour.
Hope this helps.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:29 AM
11-07-2001 11:29 AM
Re: cron scheduling
Minute Hour dayOfMonth Month Dayofweek
so to run a job every hour on the hour..
0 * * * * /jobs/to/run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 12:19 PM
11-07-2001 12:19 PM
Re: cron scheduling
In addition to the information you already have, note this from the 'crontab' man page:
"You can execute crontab if your name appears in the file /var/adm/cron/cron.allow. If that file does not exist, you can use crontab if your name does not appear in the file /var/adm/cron/cron.deny. If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab."
Similar security also exists for 'at' commands using the /var/adm/cron/at.allow and /var/adm/cron.at.deny files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 07:36 PM
11-07-2001 07:36 PM
Re: cron scheduling
When editing the crontab make a habit of *not*
using the -e switch. Make a copy to a temporary
file and then submit it.
# crontab -l >/tmp/wrk
# vi /tmp/wrk
Make your changes (for example)
0 * * * * /usr/local/bin/my_job.sh
Save the file
# Submit it to cron
# crontab /tmp/wrk
HTH
-Michael