good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How can i check my script is already running?by hotpelmen (Scribe) |
on May 11, 2010 at 16:30 UTC ( [id://839473]=note: print w/replies, xml ) | Need Help?? |
Just a note: you need to exclude your "ps" check from the list of processes returned since it will also match your script path.
Try this:
or But I agree with others, you can find better ways to do it.
In Section
Seekers of Perl Wisdom
|
|