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