Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Locking/unlocking program execution using a queueby RazorbladeBidet (Friar) |
on Mar 31, 2005 at 13:17 UTC ( [id://443794]=note: print w/replies, xml ) | Need Help?? |
I didn't see that documented anywhere (and I have no man pages installed for flock, fcntl or lockf on the AIX machine I am working on!) so I tested it out.
By hand it seemed to work... but running it in a script of #!/bin/ksh testlock.pl 1 & testlock.pl 2 & testlock.pl 3 & testlock.pl 4 & testlock.pl 5 &gave me this: got lock 4 finished sleeping 4 got lock 3 finished sleeping 3 got lock 1 finished sleeping 1 got lock 5 finished sleeping 5 got lock 2 finished sleeping 2So I don't think that's supported on all platforms
-------------- "But what of all those sweet words you spoke in private?" "Oh that's just what we call pillow talk, baby, that's all."
In Section
Seekers of Perl Wisdom
|
|