home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21905 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.6 KB

  1. Path: sparky!uunet!faculty!nmrdc1!dsc3pzp
  2. From: dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: script for ttys modem call-in/call-out
  5. Message-ID: <Bzz5J2.D8p@nmrdc1.nmrdc.nnmc.navy.mil>
  6. Date: 28 Dec 92 14:57:01 GMT
  7. References: <1992Dec28.071555.7279@exucom.com>
  8. Organization: Naval Medical Research & Development Command
  9. Lines: 37
  10.  
  11. In article <1992Dec28.071555.7279@exucom.com> bribbeck@exucom.com (Bob Ribbeck) writes:
  12. >
  13. >  Since the Linux wizards can't seem to creat a uugetty that will work 
  14. >for callin and call out use this script.  It will check if uugety has a
  15. >lock, then kill the old uugetty & init, call kermit (or your favorite)
  16. >and when finished reinstall uugetty and reinit back to call in mode.
  17. >All it needs is a inittab.old in /etc which is just a copy of inittab
  18. >without the uugetty of your ttys?.  You may need to change the ttys0 in
  19. >the script to your ttys#.
  20. >
  21. >
  22. >
  23. >if [ ! -s /usr/spool/uugetty ]
  24. >then
  25. >  cp /etc/inittab.old /etc/inittab
  26. >  kill -1 1
  27. >  ps > xx
  28. >  awk '/s1/ {print "kill "$1}' xx >yy
  29. >  chmod 777 yy
  30. >  yy
  31. >  rm xx yy
  32. >  kermit
  33. >  echo ttys1:vt100:/etc/uugetty ttys1 2400 >> /etc/inittab
  34. >  kill -1 1
  35. >else
  36. >  echo modem busy
  37. >fi
  38.  
  39. "uugetty" from "getty_ps" package (sunsite and/or tsx-11) works great!
  40. Uses file-locking to coordinate with Kermit & UUCP.
  41. It is a Good Thing (tm)!
  42.  
  43. -- 
  44. ===========================================================================
  45.   phil perucci      | "Any opinions expressed are solely my own views and 
  46.   ssb1pzp@digex.com |  do not reflect the position of any organization"
  47. ===========================================================================
  48.