Cron Q
    Chuck Swiger 
    cswiger at mac.com
       
    Tue Feb 21 06:51:11 PST 2006
    
    
  
Graham Bentley wrote:
> Is it OK to list two different tasks on two lines for the exactly the same
> time ?
> I did this and the second one didnt run .... maybe it was a problem with the
> job ...
You're probably better off having a one-line cron line which invokes a shell
script that runs your two different tasks sequentially (especially if the
seconds depends on the output of the first).
You can also conjoin the commands via "&&":
  grep -q WARNING /var/log/messages && echo "Warnings found!"
-- 
-Chuck
    
    
More information about the freebsd-questions
mailing list