Pause a script

Mark Haney mhaney at ercbroadband.org
Tue Feb 6 14:43:07 UTC 2007


I have been trying for a bit to do something like this in cron:

<script1><pause for 60 second>;<script2>

Here's the situation, I have a script1 that I want to run and wait 60 
second or so in order to have script2 startup and generate a PID in 
/var/run, then have script1 check for the existence of that PID and 
alert me if it's not there.  My boss told me of a 'timer' command that 
would do this, but I"ve not seen any documentation on it through google 
and others.  Is there some way to accomplish this as is or will I need 
to tweak my scripts?

I know about the sleep command, but I don't think that would work in 
this instance as I don't really want script1 to run immediately.  Does 
that make any sense at all?

-- 
Ita erat quando hic adveni.

Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415




More information about the fedora-list mailing list