- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron capabilities
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
08-16-2000 09:58 AM
08-16-2000 09:58 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:03 AM
08-16-2000 10:03 AM
Re: cron capabilities
Also, SAM->Routine Tasks->Sytem Shutdown let you to enable a shoutdown a while ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:04 AM
08-16-2000 10:04 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:14 AM
08-16-2000 10:14 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:16 AM
08-16-2000 10:16 AM
Re: cron capabilities
At first thought, if the date is then between the 15th and 21st inclusive then it's the 3rd in the month.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:18 AM
08-16-2000 10:18 AM
Re: cron capabilities
I meant to finish...
if todays date obtained from 'date' is between the 15th and 21st inc then do your reboot:-
shutdown -r -y 0
otherwise just exit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:19 AM
08-16-2000 10:19 AM
Re: cron capabilities
30 5 * * 6 /sbin/shutdown -r 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:20 AM
08-16-2000 10:20 AM
Solution00 04 * * 5 /your_script
And in your script, test the value of the date, I suppose a 3rd friday in the month should be between the 17th and 23rd day of the month (check it out!)
like:
if [ $(date '+%d') -lt 23 ] and [ $(date '+%d' -gt 17 ]
then
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:38 AM
08-16-2000 10:38 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:46 AM
08-16-2000 10:46 AM
Re: cron capabilities
if [ $(date '+%d') -lt 23 -a $(date '+%d') -gt 15 ]
then...
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 10:46 AM
08-16-2000 10:46 AM
Re: cron capabilities
if [ $(date '+%d') -lt 23 -a $(date '+%d') -gt 15 ]
then...
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 11:57 AM
08-16-2000 11:57 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 11:57 AM
08-16-2000 11:57 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 11:59 AM
08-16-2000 11:59 AM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 12:02 PM
08-16-2000 12:02 PM
Re: cron capabilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 01:20 PM
08-16-2000 01:20 PM
Re: cron capabilities
it uses "cal" and cut -c16-17
thought there might be a way to do this via "at"
but guess not.