home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sources / wanted / 5794 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.5 KB

  1. Xref: sparky comp.sources.wanted:5794 comp.unix.sys5.misc:111
  2. 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
  3. From: hawkeye@glia.biostr.washington.edu (Ken Keys - TF Dude)
  4. Newsgroups: comp.sources.wanted,comp.unix.sys5.misc
  5. Subject: Re: I'm looking for a sysV version of "lock." Where could I find it?
  6. Date: 24 Jan 93 15:20:14 GMT
  7. Organization: University of Washington
  8. Lines: 45
  9. Distribution: usa
  10. Message-ID: <hawkeye.727888814@glia>
  11. References: <1js5shINNnnb@umbc7.umbc.edu>
  12. NNTP-Posting-Host: glia.biostr.washington.edu
  13.  
  14. In <1js5shINNnnb@umbc7.umbc.edu> damon@umbc.edu (Mr. Damon Kelly) writes:
  15.  
  16. >["Lock" is a program that keeps other unwanted users from using your
  17. >account while you're away from the terminal.]
  18.  
  19. >I want to use the program on a SGI machine running IRIX 4.0.5C.
  20.  
  21. >-d
  22.  
  23. I use this script on systems that don't have lock.
  24.  
  25. #!/bin/sh
  26. trap "" 1 2 3 18
  27. stty -echo
  28. while true; do
  29.     echo 'Enter password: \c'
  30.     read pass; echo
  31.     echo 'Again: \c'
  32.     read line; echo
  33.     if [ "$line" = "$pass" ]; then
  34.         clear
  35.         break
  36.     fi
  37.     echo "Doesn't match."
  38. done
  39. line=
  40. while [ "$line" != "$pass" ]; do
  41.     echo 'Terminal in use.  Please do not touch.'
  42.     echo 'Password: \c'
  43.     read line; echo
  44. done
  45. stty echo
  46. exit 0
  47.  
  48.  
  49. -- 
  50. --
  51. Ken Keys, aka Hawkeye
  52. Master of the Fugue
  53. kkeys@ucsd.edu or hawkeye@ucsd.edu
  54. -- 
  55. --
  56. Ken Keys, aka Hawkeye
  57. Master of the Fugue
  58. kkeys@ucsd.edu or hawkeye@ucsd.edu
  59.