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 > 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 and shell scripting languages here.

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-06-2009 11:38 PM
Extracting time from Crontab harjitsingh Shell Programming and Scripting 4 08-19-2008 09: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 10:24 AM

Reply
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 1 Week Ago
waso's Avatar
waso waso is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 8
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 1 Week Ago
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,710
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 1 Week Ago
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,910
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 1 Week Ago
waso's Avatar
waso waso is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 8
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 On




All times are GMT -4. The time now is 02:20 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