in reply to Re: how to exit if tool is already runningin thread how to exit if tool is already running
flock DATA, 6 or die "Duplicate instance"; [download]