home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22842 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.2 KB

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!jti.com!richb
  2. From: richb@jti.com (Richard Braun)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: UUGETTY & Lock files...
  5. Message-ID: <C0EFGJ.706@jti.com>
  6. Date: 5 Jan 93 20:55:30 GMT
  7. Article-I.D.: jti.C0EFGJ.706
  8. References: <1993Jan3.061828.27179@exucom.com>
  9. Sender: news@jti.com (News Admin)
  10. Organization: Jupiter Technology Inc. / Waltham, MA
  11. Lines: 37
  12. Nntp-Posting-Host: bart.jti.com
  13.  
  14. kjv@exucom.com (Karl J. Vesterling) writes:
  15. >    Where do I obtain a version of uugetty which functions, or at
  16. >least has the documentation?  Here are the problems I am experiencing:
  17. >
  18. >    o Lock-files (They exist, BUT they all are invalid/stale)
  19. >      Maybe the pid in them is not the pid of the users shell, and
  20. >      is/was the pid of uugetty itself?  IE, uugetty creates the
  21. >      lock file, puts it's PID in the file, then exits, thus
  22. >      causing the lock file to be stale?
  23.  
  24. It took a bit of source-code reading, but I finally figured out how
  25. to get uugetty working properly.  First off, there's an issue with
  26. the contents of the lock files.  Apparently some software uses ASCII-
  27. format PIDs, and other programs use binary-format.  (You can tell
  28. by seeing if the file is 4 bytes long or about 10:  the 4-byte version
  29. is binary.)  My version of kermit uses binary PIDs so I had to change
  30. and recompile uugetty to do likewise.  (I've not checked the format
  31. of the files created by uucp.)  It'd be nice if all this were
  32. consistent in Linux 1.0.
  33.  
  34. The next trick is this:  you have to tell uugetty to wait before
  35. creating a lock file.  This can be done by putting WAITCHAR=YES in
  36. the /etc/default/uugetty.ttyxx file.
  37.  
  38. Problems with uugetty can sometimes be solved by putting DEBUG=0377 in
  39. the uugetty.ttyxx config file; it'll create voluminous output in
  40. the /tmp directory, which can be helpful especially if you compare
  41. it with the source code.
  42.  
  43. I'm happy to say that once I went through all the code walk-through,
  44. the program does work as advertised and makes my system far more
  45. accessible.  (Especially with the nice new modem!)  As is typical of
  46. Linux, the source code is wonderful and the doc leaves something to
  47. be desired.  (Any tech writers out there, wanting to make a meaningful
  48. contribution?)
  49.  
  50. -rich
  51.