[lug] Telnet with here document
rm at fabula.de
rm at fabula.de
Sun Apr 10 05:00:08 MDT 2005
On Wed, Apr 06, 2005 at 10:20:58PM -0600, Daniel Webb wrote:
> On Wed, Apr 06, 2005 at 10:09:38PM +0200, rm at fabula.de wrote:
>
> > The expect solution Daniel posted does nothing more than attach to a
> > pseudo-terminal and pipe the standard filehandles to the ptty.
>
> The solution I posted does what Stephen wanted. Is there an easier way
> to do it?
Oh, this was just in the context of explaining telnet's use of
(pseudo)ttys. Depending on Stephen's needs i think it might be much more
convenient to do everything in expect. While the 'pass the ptty' approach
might be just enough to issue a single command once a program/script needs
to check the results/prompts from the other side expect is _much_ more simple.
(and i wouldn't just send a bunch of commands over telnet ... never know
what goes wrong on the other side ... :-)
Cheers RalfD
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG
mailing list