Determine if only one instance is running: Difference between revisions
Determine if only one instance is running (view source)
Revision as of 18:56, 1 April 2018
, 6 years ago→{{header|Perl 6}}: order of arguments has changed
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: order of arguments has changed) |
|||
Line 751:
sleep 60; # then your code goes here</lang>
=={{header|Perl 6}}==
{{works with|rakudo|
An old-school Unix solution, none the worse for the wear:
<lang perl6>my $name = $*PROGRAM-NAME;
Line 770:
$pidfile.close;
if try link($
$havelock = True;
}
|