Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
# For this to work, you need to explicitly
|
||||
# store the returned fh inside a variable.
|
||||
var fh = File(__FILE__).open_r
|
||||
|
||||
# Now call the flock() method on it
|
||||
fh.flock(File.LOCK_EX | File.LOCK_NB) ->
|
||||
|| die "I'm already running!"
|
||||
|
||||
# Your code here...
|
||||
say "Running..."
|
||||
Sys.sleep(20)
|
||||
say 'Done!'
|
||||
Loading…
Add table
Add a link
Reference in a new issue