The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Local shell script need to be executed on a remote linux box rajeshomallur Linux 6 05-02-2008 10:05 AM
perl - why is the shell script executed before the print command? mjays Shell Programming and Scripting 3 09-21-2007 02:49 AM
Unix shell script couldn't be executed. Pls help! duke0001 Shell Programming and Scripting 8 09-14-2006 08:15 PM
Help - Need simple example of VI executed in shell script corsart AIX 2 06-03-2006 03:25 PM
bash scripting cannot executed in crontab jimmbp Shell Programming and Scripting 6 11-11-2005 08:23 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 06-09-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
... and you wait till the clock strikes 30mins after the hour and nothing happens?
strange...
Reply With Quote
Forum Sponsor
  #9  
Old 06-09-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
how do i change it to for every 30 minutes rather than 30minutes after the hour. May be I was checking it incorrectly. Because my intention is to do it every half hour.
Reply With Quote
  #10  
Old 06-09-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
Quote:
Originally Posted by radhika
how do i change it to for every 30 minutes rather than 30minutes after the hour. May be I was checking it incorrectly. Because my intention is to do it every half hour.
Sorry, I've misspoken - it's every 30mins, e.g. 14:00, 14:30, 15:00 etc...
Reply With Quote
  #11  
Old 06-09-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
okay! I found my problem. It's not a problem, I was misinterpreting the minute part.

When we say

30 * * * * test.sh implies it runs 30mins after the hour. Not every 30 minutes. If I want the script to run every 30 minutes then we should say-

0, 30 * * * * test.sh

I tested this logic using short time 1 minute. For ex:
1 * * * * test.sh will run at 1 minute after every hour.

1, 5 * * * * test.sh will run at 1minute after every hour and 5 minutes after every hour.

Radhika.
Reply With Quote
  #12  
Old 06-09-2005
Lestat's Avatar
Registered User
 

Join Date: Feb 2005
Location: Quito - Ecuador
Posts: 67
Radhika that's right u might use in crontab:

00,30 * *.......
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0