The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab question blondie2407 HP-UX 12 09-16-2009 02:53 PM
CRONTAB Question pauls_579 UNIX for Dummies Questions & Answers 2 01-23-2007 05:46 PM
Crontab question ctcuser Shell Programming and Scripting 3 10-19-2006 10:22 AM
crontab question steelrose UNIX for Dummies Questions & Answers 5 10-05-2005 01:07 AM
crontab question Relykk UNIX for Dummies Questions & Answers 7 03-28-2004 09:02 PM

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 07-25-2006
*Jess* *Jess* is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 52
Crontab question

HI all,

I would want to schedule a job to run every 2 weeks. In the mean time, i'm only able to schedule on every week. Is it possible to schedule 2 weeks on crontab?

Thank you.
  #2 (permalink)  
Old 07-25-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,246
add a wapper script.

date +%W will give a week number, the modulus 2 of that number is 0 or 1, giving you even or odd week numbers.

You can test that condition and execute your script based on the result.
  #3 (permalink)  
Old 07-25-2006
*Jess* *Jess* is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 52
Hi,

I'm new in unix field, currently i'm searching on wrapper scripts. Is there any samples or url for me to refer? Thanks
  #4 (permalink)  
Old 07-26-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Jess, here are the FAQs. Check the technical FAQ area in that. There you will find all sorts of links to other threads like date arithmetic and tutorials. Check these out.
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 05:02 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