[BusyBox] Scriptable telnet?

Csaba Henk ekho at renyi.hu
Sun Jan 11 14:04:43 UTC 2004



On Tue, 6 Jan 2004, Rob Landley wrote:

> What we really need is a sort of circular pipe construct.  (Think netcat
> shelling out to a script...)  Then you just write a shell script instead of
> an expect script.  (Yeah, far more brittle, but doesn't require an AI engine
> written in TCL, just a half-dozen lines of code... :)
>
> Sort of like:
>
> circle 'command 1' 'command 2'
>
> Where the output of command 1 is piped into the input of command 2, and the
> output of command 2 is piped back into the input of command 1.
>
> Sort of a bit like "command 1 | command 2 > /dev/stdin", only not exactly...
> :)
>
> You might want a -v option too so you could see the data going back and forth
>
> Shouldn't be too hard to write, actually.  In fact a better syntax might be:
>
> circle "command 1 | command 2 | command 3..." and just connect stdout from
> that to stdin from that.  Makes -v potentially a bit more complicated,
> though... :)

This looks as if you tried to put together an *interactive* telnet which
utilizes nc... That's not what I need -- I need a non-interactive one.

Csaba



More information about the busybox mailing list