home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5248 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.9 KB

  1. Xref: sparky comp.unix.wizards:5248 comp.unix.internals:2059
  2. Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  3. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  4. Newsgroups: comp.unix.wizards,comp.unix.internals,bix.sco.opendesktop
  5. Subject: Re: Need to have a device open a TCP/IP connection..
  6. Message-ID: <1992Dec16.084406.9528@thunder.mcrcim.mcgill.edu>
  7. Date: 16 Dec 92 08:44:06 GMT
  8. References: <1992Dec11.021307.11286@markv.com>
  9. Organization: McGill Research Centre for Intelligent Machines
  10. Lines: 33
  11.  
  12. In article <1992Dec11.021307.11286@markv.com>, lance@markv.com (Lance Ellinghouse) writes:
  13.  
  14. > I want to re-setup our UUCP outbound connections.  The problem is
  15. > that our modems are sitting on a terminal server now.  Each modem
  16. > though has a unique IP address assigned to it.  I need to be able to
  17. > connect to that modem using a TCP/IP socket, but from inside
  18. > "uucico".  [...]  I was told by other people, "That is why they made
  19. > pty's. Use them."
  20.  
  21. This is more or less correct.
  22.  
  23. > I have no idea how to.
  24.  
  25. Since you don't give any hint what sort of system you have (I can infer
  26. that it's probably a relatively recent UNIX derivative, since you imply
  27. it speaks UUCP and TCP), I can only guess at this too.
  28.  
  29. > I have tried a few things (open the master side, wait for chars, open
  30. > the slave side, shove chars, no output/input, hangs!).
  31.  
  32. This is about as good a description as you can get in that little text.
  33. Find a free pty pair, open the control side, connect to the modem, sic
  34. uucico on the slave side.  How you go about the various steps depends
  35. on your system.  I have some programs that mess with ptys on systems
  36. that use the Berkeley pty mechanisms, and one of them even contains
  37. conditional compilation to make it work on at least some versions of
  38. IRIX (SGI's UNIX-alike, with a non-BSD pty interface).  I have no
  39. trivial demo programs for ptys, unfortunately.
  40.  
  41.                     der Mouse
  42.  
  43.                 mouse@larry.mcrcim.mcgill.edu
  44.