The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
grep unix.com with google



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

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-09-2009
waso's Avatar
Registered User
 

Join Date: Oct 2009
Posts: 10
Arrow Crontab - how to make time range?

im puting script in crontab, script is executing every 15min, every day, every monath

but i must make time range from 0:00 - 20:00 <> 20:30 - 0:00
or if i cant make 20:30 then 0:00 - 20:00 <> 21:00- 0:00

can i make it in single line like this?



Code:
7,22,37,52 0-23 * * * test.sh  >/dev/null 2>&1

  #2 (permalink)  
Old 11-09-2009
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 6,006
I do not get what you want. Instead of showing us your crontab entry, please explain what you want. As A general guess - you cannot do what you want in one line,
  #3 (permalink)  
Old 11-09-2009
fpmurphy's Avatar
Moderator
 

Join Date: Dec 2003
Location: Florida
Posts: 2,030
Most versions of cron/crontab support lists. Have you tried something like

Code:
7,22,37,52 0-19,21-23 * * * test.sh  >/dev/null 2>&1

  #4 (permalink)  
Old 11-09-2009
waso's Avatar
Registered User
 

Join Date: Oct 2009
Posts: 10
Quote:
Originally Posted by fpmurphy View Post
Most versions of cron/crontab support lists. Have you tried something like

Code:
7,22,37,52 0-19,21-23 * * * test.sh  >/dev/null 2>&1
thanks for advice, i will try it
Sponsored Links
Reply

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
time stamp perl script error out of range 1..31 saha Shell Programming and Scripting 4 08-07-2009 12:38 AM
Extracting time from Crontab harjitsingh Shell Programming and Scripting 4 08-19-2008 10:56 AM
problem to make a crontab -l javierg SUN Solaris 4 01-02-2008 09:47 AM
to get list of files of a perticular range of time useless79 Shell Programming and Scripting 1 11-07-2007 03:53 AM
Start time/end time and status of crontab job thambi Shell Programming and Scripting 3 05-16-2007 11:24 AM



All times are GMT -4. The time now is 10:03 PM.


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