terminal - "nc: getaddrinfo: nodename nor servname provided, or not known" with shell script -


i'm trying communicate server , send telnet commands (login , logout again). generated shell skript , getting error message "nc: getaddrinfo: nodename nor servname provided, or not known".

the specific line is:

(sleep 1&echo $login&sleep 1&echo $password&sleep 1&echo exit) | nc $ip 23 > dump.out 

when execute line (and sure export lines before) directly in terminal works without problem, when execute script, error message.

can help? appreciated. in advance.

check out:

nc: getaddrinfo: nodename nor servname provided

this error means netcat unable requested host in dns. means either have typo somewhere, or pagekite.py connector on ssh server side not running properly.

try check packages, either wrong script or dns request.

hope helps! :)

source: http://pagekite.net/wiki/howto/sshoverpagekite/#ncdns


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -