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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron job question dannyd Linux 5 03-03-2008 11:40 AM
cron question moe2266 Shell Programming and Scripting 4 08-20-2007 04:09 PM
question about cron hcclnoodles UNIX for Dummies Questions & Answers 1 12-08-2006 09:02 AM
CRON Question DenD AIX 2 01-17-2006 01:59 PM
cron question ted Shell Programming and Scripting 2 08-02-2004 05:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-18-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
Talking cron question

folks;
This might sounds stupid, but i tried few ways to solve it without luck.
I need to run a job on the first Saturday of every month at 10 pm. so far i'm not sure what am i doing wrong, but every time i set it, it always run every Saturday instead of the first Saturday of every month.

Any help would be great.
  #2 (permalink)  
Old 11-18-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922

Code:
0 10 1-7 * 6

  #3 (permalink)  
Old 11-18-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
That will run on the first seven days of each month and on every Saturday. This is discussed in the FAQ article on cron and that article has a link to a thread with one solution. This is why we wish folks would read the FAQ's.
  #4 (permalink)  
Old 11-19-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
I already have that but it doesn't work.
that's what i have:
0 22 1-7 * 6
  #5 (permalink)  
Old 11-19-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Quote:
Originally Posted by moe2266 View Post
I already have that but it doesn't work.
that's what i have:
0 22 1-7 * 6
And I already mentioned that this is discussed in the FAQ.
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 03:50 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