1
vote
2answers
10k views

telnet fails to connect: Connection closed by foreign host

I try to connect to localhost with telnet: % telnet localhost 6311 This connection succeed, but when I connect by external IP of my computer, connection fails: % telnet x.x.x.x 6311 Trying ...
5
votes
3answers
4k views

How to run scripts within a telnet session?

I want to connect to a remote host using telnet there is no username/password verification just telnet remotehost then I need to input some commands for initialization and then I need to repeat ...
1
vote
1answer
309 views

Telnet fails to run properly when run from daemon process

When I call telnet to connect to daytime server from interactive shell, it works fine. However, when the same telnet call is issued from a shell script run by cron or some bash daemon process, it ...
1
vote
2answers
644 views

Cron fails to run bash script

I have bash script #!/bin/sh DTFILE=/etc/daytime.addr DTPORT=13 DAYTIME_ERROR=/tmp/dtm.err function daytime_error(){ if [[ -z $1 ]] then exit 1 fi if [[ -e $DAYTIME_ERROR ]] ...
0
votes
4answers
241 views

Creating a command that compress a file and save it on a usb, but cannot detect the usb in linux

First of all I can't detect the USB on linux using the command line. I check the directory dev and still cannot find the usb. used the df command to check the usb. I plug and typed df and then unplug ...
4
votes
3answers
326 views

/usr/bin/reset disables backspace

Following this question, running /usr/bin/reset destroys my backspace functionality. What can I do? After pressing backspace I get ^?
7
votes
8answers
359 views

Save me from gibbrerish terminal

While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...