LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   shell script to autologin into a telnet session (http://www.linuxquestions.org/questions/linux-general-1/shell-script-to-autologin-into-a-telnet-session-117214/)

eastj1974 11-17-2003 07:24 PM

shell script to autologin into a telnet session
 
I've been using the following ftp script to login to a remote server.

/usr/bin/ftp -n server name <<EOF
user username password
get remote server path local server path
put local server path remote server path
EOF

I would also like to autologin into telnet as well.

Is that possible? A detailed explanation would be appreciated. Thanks

hw-tph 11-17-2003 07:58 PM

I suggest you look into expect. It is very easy to create expect scripts - the package even comes with a script that you can run and capture whatever it is you want to automate. There are a lot of examples to look at if you google around for a bit as well.

Håkan


All times are GMT -5. The time now is 12:52 PM.