Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Question about flock and printing to file

by flexvault (Monsignor)
on Jun 23, 2015 at 21:08 UTC ( [id://1131735]=note: print w/replies, xml ) Need Help??


in reply to Question about flock and printing to file

Welcome deruytja,

Since your OS is Ubuntu 14.04, you should be able to run the sample script shown here. I just downloaded it and verified that it still works on Debian.

This is more complicated than you need, but without 'flock', this script couldn't run correctly. It manually handles the 'fork's but once you get the methodology of using 'fork' to enable multi-user, multi-tasking, you'll have a lot of fun with this.

I also think there are some examples in the 'Perl Cookbook' and I'm sure more on PM. But I know this one works! Good Luck!

Regards...Ed

"Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1131735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found