Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.lang.perl Subject: Re: While learning PERL... a suggestion Keywords: perl file learn suggest Message-ID: <1991Jan23.172830.684@chinet.chi.il.us> Date: 23 Jan 91 17:28:30 GMT References: <119440@uunet.UU.NET> <1991Jan22.054732.14797@convex.com> <119542@uunet.UU.NET> Organization: Chinet - Public Access UNIX Lines: 19 In article <119542@uunet.UU.NET> rbj@uunet.UU.NET (Root Boy Jim) writes: >What I am trying to do is steal one of UUCP's dialout modems, >following the same protocol that tip/cu use. >>Anyway aren't you "supposed" to use link, not creat, for creating >>lock files of this nature? >Not, I believe, since the "new" flags were added to open. Actually you still need to make the file under a temp name and link it because the contents of the lockfile are used by cu/uucp, and there is no other way to make the contents of the file consistent at the time the name appears. It is still impossible to use the contents for anything that relies on the contents remaining the same after looking at it, but that's not perl's problem. Les Mikesell les@chinet.chi.il.us