Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 7/1/84; site wuphys.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!mgnetp!we53!busch!wucs!wuphys!mff From: mff@wuphys.UUCP (Swamp Thing) Newsgroups: net.sources Subject: Terminal Locking Message-ID: <369@wuphys.UUCP> Date: Fri, 13-Sep-85 09:44:39 EDT Article-I.D.: wuphys.369 Posted: Fri Sep 13 09:44:39 1985 Date-Received: Sat, 14-Sep-85 06:55:54 EDT Distribution: na Organization: Physics Dept., Washington Univ. in St. Louis Lines: 32 Here's a simple terminal-locking shell script that works under 4.2bsd. -----------------CUT HERE--------------------- : This is a shar archive. Extract with sh, not csh. : This archive ends with exit, so do not worry about trailing junk. echo 'Extracting lock' sed 's/^X//' > lock << '+ END-OF-FILE lock' Xlock + END-OF-FILE lock chmod 'u=rw,g=r,o=r' 'lock' echo ' -rw-r--r-- 1 mff 5 Sep 13 08:42 lock (as sent)' echo -n ' ' /bin/ls -l lock exit 0 Of course, it might not be too useful if you're running something else... Mark F. Flynn Department of Physics Washington University St. Louis, MO 63130 ihnp4!wuphys!mff ------------------------------------------------------------------------------ "There is no dark side of the moon, really. Matter of fact, it's all dark." P. Floyd