in reply to Script doesn't exit when run from cron.
Hmm, can I presume that writekeyscmdline is the name of your script? , without bending my head too much, it looks like your backtick command to ps will not only discover any previously running invocations , but also the PRESENT invocation.
Check if the PID in $result is the same as $$ , ie the PID of the running script. If so - it will be sleep 60'ing because it's running. if that makes sense.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Script doesn't exit when run from cron.
by brewmaker (Novice) on Jan 17, 2003 at 14:28 UTC |