January 5th, 2011, 04: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, 09:00 PM
Use ssh instead of telnet and you can do most anything you need on the remote machine.
Comments on this post
The man who doesn't read good books has no advantage over the man who can't read them.