1
vote
1answer
666 views

Telnet exit status are equal for connection refused and connection tiemout

I create a bash script that check the connection to an host with telnet. That's the core code: telnet $X 2404 < $TEST &>/dev/null if [ $? -ne 0 ] ; then echo -n "$X " >> $LOG_FILE ...
1
vote
3answers
3k views

telnet: connect to address ::1: Connection refused

when I run '(sleep 1; echo flush_all; sleep 1; echo quit; ) | telnet localhost 11211' I get Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to ...
1
vote
1answer
2k views

redirecting output from telnet / nc to file in script fails when cron'd

So, I have device on my network which sits there listening on a port for a connection, and when a connection is made it dumps ascii data out. I need to capture that data to a file. I wrote a dead ...
1
vote
4answers
3k views

Send login credentials and commands using shell script via telnet

I'm trying to run a couple remote commands on a box that will not give me a normal shell (it's a device with a proprietary shell). I'm also running the command from a device with a limited set of ...
6
votes
5answers
18k views

Can the Windows telnet client be scripted?

Is it possible to use the Windows Telnet client to run a series of commands in a script? If not are there any alternatives that can be?