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
I would also like to autologin into telnet as well.
Is that possible? A detailed explanation would be appreciated. Thanks
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.
|All times are GMT -5. The time now is 01:24 PM.|