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 ...
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 ...
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 ...
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 ...
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?