The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab schedule - first thursday of every month paulds UNIX for Dummies Questions & Answers 2 08-01-2008 04:52 PM
Schedule to run every 3 minutes - CRONTAB prashanth_gs SUN Solaris 4 02-20-2007 07:52 AM
Crontab Job - Schedule prashanth_gs SUN Solaris 7 12-04-2006 05:03 AM
How to schedule a job ashvik UNIX for Advanced & Expert Users 5 09-22-2005 07:53 AM
schedule dial-out different ISP's Hansaplast UNIX for Dummies Questions & Answers 2 01-15-2002 03:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-01-2008
dkranes dkranes is offline
Registered User
  
 

Join Date: Apr 2007
Location: Hudson Valley Region in New York
Posts: 43
Crontab schedule

I have the following crontab entry.

0,30 00-16 * * *

This job runs every 30 minutes between the hours of 12:00AM and 4:00PM. How can I have it stop at 4:30PM instead?

Thank you,

David

Last edited by dkranes; 10-01-2008 at 08:33 PM..
  #2 (permalink)  
Old 10-01-2008
PWSwebmaster PWSwebmaster is offline
Registered User
  
 

Join Date: Feb 2006
Location: Canada
Posts: 33
I believe the only way is to use 2 cronjobs. Add a second cron entry for 4:30.
  #3 (permalink)  
Old 10-02-2008
Dave Miller's Avatar
Dave Miller Dave Miller is offline
Registered User
  
 

Join Date: Dec 2007
Location: Northern NJ, USA
Posts: 151
0,30 00-16 * * * command
There is nothing wrong with this crontab entry. It should run the command on the hour and half hour from midnight thru 4:30pm every day.


Did you mean to have it NOT run at 4:30? You'd need two lines:

0,30 00-15 * * * command # Runs from midnight to 3:30pm
0 16 * * * command # Runs at 4:00pm
  #4 (permalink)  
Old 10-02-2008
PWSwebmaster PWSwebmaster is offline
Registered User
  
 

Join Date: Feb 2006
Location: Canada
Posts: 33
Quote:
Originally Posted by Dave Miller View Post
0,30 00-16 * * * command
There is nothing wrong with this crontab entry. It should run the command on the hour and half hour from midnight thru 4:30pm every day.


Did you mean to have it NOT run at 4:30? You'd need two lines:

0,30 00-15 * * * command # Runs from midnight to 3:30pm
0 16 * * * command # Runs at 4:00pm
You're right. The post must have made me think it doesn't run at 4:30, but his setting would run at midnight and 4:30pm.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0