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;
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (258 votes). Check out past polls.