LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   telnet script help (https://www.linuxquestions.org/questions/linux-general-1/telnet-script-help-278419/)

GUIPenguin 01-16-2005 09:11 AM

telnet script help
 
whould it be possible to right a shell script in linux that could telnet to an ip then enter a command.

I have tryed but once the telnet session is open, no more input commands with work from the shell script to the telnet server.


could you show me an example of how I could do this, thanks!

Tinkster 01-16-2005 01:59 PM

Why don't you use ssh instead?

ssh my_user@my_host my_command


Cheers,
Tink

GUIPenguin 01-16-2005 02:48 PM

becouse the device I am telneting to uses only telnet to enter commands (ie cable modem)


All times are GMT -5. The time now is 02:11 PM.