- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron with extended feature
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
тАО04-03-2006 11:48 PM
тАО04-03-2006 11:48 PM
In crontab I can set values for the day of the week: 0-6, for example
00 03 * * 3,6 csh -c '_command_'
I need to schedule some jobs on each fourth Friday. (Something like 00 03 * * 1-6/4 csh -c '_command_')
I think I cannot set such value in standard HP-UX cron, but maybe you know any tools to do that?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2006 11:53 PM
тАО04-03-2006 11:53 PM
Re: cron with extended feature
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2006 11:54 PM
тАО04-03-2006 11:54 PM
Re: cron with extended feature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2006 08:54 PM
тАО04-04-2006 08:54 PM
Solutionyou cannot do teh same using crontab only.
You have to write a wrapper script (sheduled to run every day in crontab or better every Friday) that checks about teh 4th Friday of teh month and if this is the case start your script.
#!/usr/bin/ksh
set -A Friday $(cal|awk 'NR>3 {print $6}'|grep -v ^$)
integer friday4=${Friday[3]}
integer today=$(echo $(date +%d)+0|bc)
if [[ $today = $friday4 ]]
then
echo "Today is the 4th friday of teh month"
#run your script here
fi
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 07:11 PM
тАО04-06-2006 07:11 PM