[BusyBox] Scriptable telnet?
Csaba Henk
ekho at renyi.hu
Sun Jan 11 14:25:57 UTC 2004
On Tue, 6 Jan 2004, Wolfgang Denk wrote:
> In message <Pine.GSO.4.56.0401061242460.13643 at hexagon.renyi.hu> you wrote:
> >
> > > > I'd need a scriptable telnet client for busybox, ie. one such that you
> > > > can send commands to, eg. via a fifo, like it's done in
>
> Use expect.
>
> > The situation is that I want to script a telnet session. The best beast
> > for communicating with a telnet server is a telnet client, ain't it? Using
> > nc would mean writing a telnet client in shell... that's not what I want.
>
> Use expect.
To admit, except showed me that I'm not right in that
if (tcgetattr(0, &G.termios_def) < 0)
exit(1);
should be changed. It *is* posible to script bb telnet as is. Sorry for
the false alarm.
Now I only wonder how expect does it... I can't use expect, but I can do
the same thing.
Csaba
More information about the busybox
mailing list