Pause a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux