January 5th, 2011, 05:26 PM
Shell script that logs into another machine and executes some commands
Hello, I am trying to write a script that connects to a server and executes some commands on there. Something like this:
Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?
January 5th, 2011, 10:00 PM
Use ssh instead of telnet and you can do most anything you need on the remote machine.
Comments on this post
I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton