[BusyBox] Scriptable telnet?
Csaba Henk
ekho at renyi.hu
Mon Jan 5 16:34:02 UTC 2004
Hi,
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
http://okmij.org/ftp/piped_agents.txt
(nb. standard linux telnet is scriptable [the above text mentions only
other Unices]).
It's quite easy to get one: one just has to change the lines
if (tcgetattr(0, &G.termios_def) < 0)
exit(1);
to a simple
tcgetattr(0, &G.termios_def);
in networking/telnet.c .
So far so good for me; but now I wonder is there any reason to treat the
failure of tcgetattr as being fatal? Or, if there is, couldn't at least a
config option be made for contrlling this?
Csaba
More information about the busybox
mailing list