telnet <<EOF>

Is it possible to redirect commands in a telnet session?

I can't seem to log in:

namu# telnet aqasap << EOF

> root

> blah

> ls

> exit

> EOF

Trying 8.12.30.14...

Connected to aqasap.

Escape character is '^]'.

Connection closed by foreign host.

namu#

Thanks,

Miller

[388 byte] By [mtaom] at [2007-11-25 23:20:50]
# 1
while i believe it would work mostly, when asking for a password, most utilities (like login, or telnetd) clear the cache thus requiring human entry of password.you could try a utility like expect.fred
fim32 at 2007-7-5 18:08:40 > top of Java-index,General,Talk to the Sysop...
# 2
For something like this use expect.
swoneill at 2007-7-5 18:08:40 > top of Java-index,General,Talk to the Sysop...
# 3
Or the perl equivalent of expect - I can never remember its name - perl expect maybe ... LOL
swoneill at 2007-7-5 18:08:40 > top of Java-index,General,Talk to the Sysop...