- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- crontab entry
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- Report Inappropriate Content
02-07-2011 05:25 AM
02-07-2011 05:25 AM
Re: crontab entry
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP