Posted by Raj Shekhar on 03/16/05 21:21
"Mikey" <frak@totalise.co.uk> writes:
>
> How about grabbing the output from `ps -ax` and looping thourhgthe results
> to see if your script is being run?
Again the problem is of atomicity. This is a multi step process
- do a ps -aux
- do a grep on the output
- start script processing
What if second script between step 1 and 2 ? That is why we need
something that is guaranteed to complete in 1 step.
--
Raj Shekhar Y! : Operations Engineer
MySQL DBA, programmer and slacker Y!IM : lunatech3007
home : http://rajshekhar.net blog : http://rajshekhar.net/blog/
[Back to original message]
|