- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron help
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
06-14-2005 02:25 AM
06-14-2005 02:25 AM
cron help
I know i can do these ..
00 08 * * * /jobname
30 17 * * * /jobname
But is there any way i can set it to run first at 0800 and then at 1730 in once cron command ?
Thanks in advance,
Zee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:29 AM
06-14-2005 02:29 AM
Re: cron help
if the start time was 17:00 you could with:
00 08,17 * * * /jobname
Otherwise you could use a conditional at in the 08:00 run
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:30 AM
06-14-2005 02:30 AM
Re: cron help
Sure - use the at command.
Just make the last command in the cron job an at command timed for 17:30 that day.
man 1 at
for details.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:32 AM
06-14-2005 02:32 AM
Re: cron help
00,30 08,17 * * * /jobname then the command would execute 4 times per day. You could put an "at" command in /jobname but that would be more complicated and error prone that your current method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:32 AM
06-14-2005 02:32 AM
Re: cron help
echo "full_path_name_of_job" |at 1730 today
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:34 AM
06-14-2005 02:34 AM
Re: cron help
#
# Loop
#
count=1
_ret=1
while [ $count -le 2 -a $_ret != 0 ]
do
your commands...
count=$((count + 1 ))
sleep 34200
done
or something like that...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:36 AM
06-14-2005 02:36 AM
Re: cron help
It is best to setup two cron jobs under the circumstances unless you want to run one at 8:00am and the other at xx:00 AM/PM.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 02:37 AM
06-14-2005 02:37 AM
Re: cron help
Nice idea though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 03:20 AM
06-14-2005 03:20 AM