home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3659 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.2 KB

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!haas.berkeley.edu!philip
  2. From: philip@haas.berkeley.edu (Philip Enteles)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Redirecting input and output
  5. Date: 20 Aug 1992 17:19:40 GMT
  6. Organization: Haas School of Business, Berkeley
  7. Lines: 20
  8. Message-ID: <170k7cINN6st@agate.berkeley.edu>
  9. NNTP-Posting-Host: haas.berkeley.edu
  10.  
  11. I am trying to start a telnet session from a program module. I want to
  12. be able to start the session, give a login name and a password then turn
  13. the session over to a user. For example
  14.  
  15. %>(echo username; sleep 1; echo password; sleep 1;) | telnet somewhere
  16.  
  17. This works for opening and passing things but then the session is closed
  18. by the remote host. If I add a 'cat -' before the closing ')' the
  19. opening and passing happens but then it closes with the error
  20.  
  21. cat: read error: Operation would block
  22.  
  23. I am running Ultrix 4.2A and the tcsh. I have tried a number of
  24. different cat commands and they seem to do what the manual says so I am
  25. baffled by the read block. Any help would be greatly appreciated. Please
  26. mail and I will sumerise.
  27.  
  28. Philip Enteles                Network Administrator
  29. philip@haas.berkeley.edu    University of California, Berkeley
  30. 510-642-4436                "Shake your hand,,,,Shake your hand"
  31.