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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-06-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If not running them at the same time is a requirement, you need to implement some additional logic. Perhaps wrap each of the scripts inside a wrapper which decides whether to run or not, based on your criteria, or based on the existence of a lock file (but then you still need to figure out how to make the correct one run and create the lock file in the first place).

Actually maybe it's easier to have a single cron job which runs a script which decides whether it should run the monthly, weekly etc job.

@incredible: what does redirection have with this to do?