Friday, October 21, 2005

use telnet command in a shell script

Re: use telnet command in a shell script

I would use ssh instead of telnet setup a connection with keys so that
the connection does not require a password (man ssh to find out how)
then call it as follows

ssh hostname -l username "command" | tee -a output.txt

0 Comments:

Post a Comment

<< Home