in reply to Re: Ensuring only one copy of a perl script is running at a timein thread Ensuring only one copy of a perl script is running at a time
$cmd = 'ps -eaf | grep -c "\< '."$0".'\>"';
chomp($instances = `$cmd`);
if($instances > 1) exit;
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (56 votes). Check out past polls.