- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Crontab Time Setting question
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
тАО06-27-2007 06:20 AM
тАО06-27-2007 06:20 AM
I would like to run this particular job at these time slots:
6:30
10:15
13:15
16:00
19:15
This is how I have it setup and working, but I can't figure out what to do with the one with 15 minutes job.
30 6,10,13,16,19 * * * /tmp/My_File
Please help.
Thank you in advance.
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:30 AM
тАО06-27-2007 06:30 AM
Re: Crontab Time Setting question
30 6 * * * /tmp/My_File
15 10 * * * /tmp/My_File
15 13 * * * /tmp/My_File
00 16 * * * /tmp/My_File
15 19 * * * /tmp/My_File
There is no way to do this with one line in cron. If there is a way to do it on one line with Linux, its not supported off platform and I would not do it because I want my cron schedules portable with HP-UX, AIX and Solaris.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:32 AM
тАО06-27-2007 06:32 AM
Re: Crontab Time Setting question
crontab isn't user friendly. You may have to setup multiple cron jobs to run at specific times since these timings are not in sequence.
1 - min.
2 - hour
3 - weekday
if you want to setup cron job which runs every 15min, then do this
0, 15, 30, 45, 60 * * * /tmp/my_file >/dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:33 AM
тАО06-27-2007 06:33 AM
Re: Crontab Time Setting question
# At 16:00
0 16 * * * /tmp/My_File
# At 6:30
30 6 * * * /tmp/My_File
# At 10:15, 13:15, 19:15
15 10,1319 * * * /tmp/My_File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 08:36 AM
тАО06-27-2007 08:36 AM
Re: Crontab Time Setting question
Thank you so much!!
Jorge