Well depending on how many commands you want to run, you can just use
ssh. For example.
[timh@yoda timh]$ ssh chewbacca cat .aliases | grep root | wc -l
timh@chewbacca's password:
3
So I ssh'd to CHEWBACCA, cat'd the .aliases file I have in my root
directory. grep'd out the word root,
Hello!
I want to write a script that makes telnet to log in and send some commands
How do I do?
//Magnus
Hello!
I want to write a script that makes telnet to log in and send some commands
How do I do?
Hi Magnus,
I think redirecting would work:
your script could be
open your-host-name-here
command1
command2
command3
exit
and then you simply do
telnet scriptname
I can't check the
Paul wrote:
Hello!
I want to write a script that makes telnet to log in and send some commands
How do I do?
Hi Magnus,
I think redirecting would work:
your script could be
open your-host-name-here
command1
command2
command3
exit
and then you simply do
telnet scriptname