- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab entry
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
тАО02-07-2011 04:09 AM
тАО02-07-2011 04:09 AM
crontab entry
I need to make a crontab entry for the below manner.
the reboot of server have to be planned on last Sunday of the month at 1:00 AM
how can it be? me bit confused....
00 01 * * 0 ==> I guess this may not work....
pls advice me whether the above mentioned way will work or not?
Thanks and regards
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:15 AM
тАО02-07-2011 04:15 AM
Re: crontab entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:24 AM
тАО02-07-2011 04:24 AM
Re: crontab entry
I think it will work for all the sundays in the month.
It will be better if you mention the last seven dates of the month in the third field. But the problem will arise because each month has different number of days.
I think if you schedule thrice as below it will work as far as my knowledge.
00 01 25,26,27,28,29,30,31 Jan,Mar,May,Jul,Aug,Oct,Dec 0
Similarly it will be necessary to do for the month with 30 days and feb.
But I think there might be any other simple method to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:29 AM
тАО02-07-2011 04:29 AM
Re: crontab entry
It's been ages since I have used cron. Your syntax looks fine to me... And I assume you know what command or redirection you would put after the numericals.
Crontab manual " If both month and day of month are specified as an asterisk, but day of week is an element or list, then only the specified days of the week match ".
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:33 AM
тАО02-07-2011 04:33 AM
Re: crontab entry
My requirement is only to reboot the server in the mentioned time.
No need for Broadcaste message.
thnx&rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:33 AM - last edited on тАО09-29-2011 01:50 PM by Kevin_Paul
тАО02-07-2011 04:33 AM - last edited on тАО09-29-2011 01:50 PM by Kevin_Paul
Re: crontab entry
Some scripts to do the same.
http://h30499.www3.hp.com/t5/General/scheduling-a-cron-job-on-the-last-day-of-the-month/m-p/3099819#M80696
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 05:25 AM
тАО02-07-2011 05:25 AM