Re: [newbie] telnetscript

2001-06-16 Thread Tim Holmes
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,

[newbie] telnetscript

2001-06-15 Thread Magnus Stenemo
Hello! I want to write a script that makes telnet to log in and send some commands How do I do? //Magnus

Re: [newbie] telnetscript

2001-06-15 Thread Paul
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

Re: [newbie] telnetscript

2001-06-15 Thread Ric Tibbetts
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