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 > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 09-29-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
well, it is possible, but your crontab lines get awfully long. Cron will only execute EVERY set day, there is no explicit way to tell it every Other set day, so you have to test whether it should run today or not, and in the simple, binary, case like this, the easiest (maybe quickest) solution is to keep track of things with a flagfile.
You can put the logic in the wrapper script above into the cron entry, but, as I said, it makes the entry very long, and difficult to read.