Or use the Fnctl module and use LOCK_EX|LOCK_NB instead of 6.flock DATA, 6 or die "Duplicate instance";
In reply to Re^2: how to exit if tool is already running
by JavaFan
in thread how to exit if tool is already running
by srikrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |