On 10/3/07, Elizabeth Cortell <[EMAIL PROTECTED]> wrote: > Checking for instances by grepping the output of ps tends to also catch > instances of > > vi myscript.pl > > So that innocently editing the file on that box keeps it from running! Not > what you have in mind, I think. snip
Which is why you don't grep for the script name. You look for something like "^/usr/bin/perl myscript.pl$" in the ouput of your system's equivalent to "ps -axo command". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/