home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:5794 comp.unix.sys5.misc:111
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!glia!hawkeye
- From: hawkeye@glia.biostr.washington.edu (Ken Keys - TF Dude)
- Newsgroups: comp.sources.wanted,comp.unix.sys5.misc
- Subject: Re: I'm looking for a sysV version of "lock." Where could I find it?
- Date: 24 Jan 93 15:20:14 GMT
- Organization: University of Washington
- Lines: 45
- Distribution: usa
- Message-ID: <hawkeye.727888814@glia>
- References: <1js5shINNnnb@umbc7.umbc.edu>
- NNTP-Posting-Host: glia.biostr.washington.edu
-
- In <1js5shINNnnb@umbc7.umbc.edu> damon@umbc.edu (Mr. Damon Kelly) writes:
-
- >["Lock" is a program that keeps other unwanted users from using your
- >account while you're away from the terminal.]
-
- >I want to use the program on a SGI machine running IRIX 4.0.5C.
-
- >-d
-
- I use this script on systems that don't have lock.
-
- #!/bin/sh
- trap "" 1 2 3 18
- stty -echo
- while true; do
- echo 'Enter password: \c'
- read pass; echo
- echo 'Again: \c'
- read line; echo
- if [ "$line" = "$pass" ]; then
- clear
- break
- fi
- echo "Doesn't match."
- done
- line=
- while [ "$line" != "$pass" ]; do
- echo 'Terminal in use. Please do not touch.'
- echo 'Password: \c'
- read line; echo
- done
- stty echo
- exit 0
-
-
- --
- --
- Ken Keys, aka Hawkeye
- Master of the Fugue
- kkeys@ucsd.edu or hawkeye@ucsd.edu
- --
- --
- Ken Keys, aka Hawkeye
- Master of the Fugue
- kkeys@ucsd.edu or hawkeye@ucsd.edu
-