Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* telnet from tty AND stdin
@ 1998-07-14  4:00 Marc Elsen
  1998-07-16  4:00 ` Phil Farrell
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Elsen @ 1998-07-14  4:00 UTC (permalink / raw)



 Does anyone know of a version of telnet for DUX4.0
 which can also read from stdin instead of tty only ?
 Constructs like :

 telnet<<EOM
 -foo-whatever-
 EOM

 do work in hp-ux telnet but DUX telnet does not seem
 to want to read from stdin.
 I need this badly for a script which must run
 under DUX4.0

 Help appreciated,


				    Thanks !

					    Marc.

--

 'Love is truth without any future.
 (M.E. 1997)



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: telnet from tty AND stdin
  1998-07-14  4:00 telnet from tty AND stdin Marc Elsen
@ 1998-07-16  4:00 ` Phil Farrell
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Farrell @ 1998-07-16  4:00 UTC (permalink / raw)
  To: Marc Elsen

Marc Elsen wrote:
> 
>  Does anyone know of a version of telnet for DUX4.0
>  which can also read from stdin instead of tty only ?
>  Constructs like :
> 
>  telnet<<EOM
>  -foo-whatever-
>  EOM

You can install the "expect" public domain software package, that allows
you
to provide scripted input to any normally interactive command.  Expect 
can be programmed to wait for the appropriate responses from the program
before feeding the next command, just like an interactive user would.

-Phil Farrell
Computer Systems Manager
Stanford University School of Earth Sciences
farrell@pangea.stanford.edu



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-07-16  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-14  4:00 telnet from tty AND stdin Marc Elsen
1998-07-16  4:00 ` Phil Farrell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox