home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / perl / 5384 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.0 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!usc!sol.ctr.columbia.edu!eff!iWarp.intel.com|inews.Intel.COM!ilx018!ilws14!steed
  2. From: steed@ilws14 (Ze'ev Shtadler)
  3. Newsgroups: comp.lang.perl
  4. Subject: open(lockfile, O_CREAT|O_WRONLY|O_EXCL, 0444) in perl?
  5. Keywords: lock file
  6. Message-ID: <1992Aug19.082244.61337@ilx018.intel.com>
  7. Date: 19 Aug 92 08:22:44 GMT
  8. Sender: news@ilx018.intel.com (USENET news system)
  9. Organization: Intel
  10. Lines: 14
  11. X-Newsreader: Tin 1.1 PL4
  12.  
  13. I'd like to have a perl script that uses a lock file as a semaphore
  14. across NFS of diverse hardware platforms and operating systems.  I was
  15. told, this is the only "real safe" way to ensure exclusive access
  16. between processes on different machines (I know this does not apply to
  17. processes not bothering to lock :-).  Can that be done from within
  18. perl?
  19.  
  20. Ze'ev.
  21.  
  22. --
  23. Ze'ev "Steed" Shtadler, Design Technology, IDC2-41,
  24. INTeL Israel, P.O. Box 1659, Haifa 31015, ISRAEL.
  25. steed@iil.intel.com    Work: +972-4-355935    FAX: +972-4-355666
  26. iNET: 8-435-5935    Home: +972-4-220306
  27.