Help for this page

Select Code to Download


  1. or download this
    D:\perl\scratch>(start flock_test.pl) && (perl -e "sleep 2") && (echo 
    +"foo" > sem.lck)
    The process cannot access the file because it is being used by another
    + process.
    
  2. or download this
    D:\perl\scratch>(start flock_test.pl) && (perl -e "sleep 2") && (flock
    +_test.pl)
    Opened file
    Printed
    Got lock