From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Wed Apr 10 2002 - 19:09:57 EDT
Hi all,
this is probably a bit off topic, but I know no other place to ask the
question.
We want to execute a sh script on our Solaris 8 box that logs into
another machine via telnet issues a command that generates some output
and then write this output into a file on the Sun. How can this be done?
We tried
#!/bin/sh
echo Getting the stuff
telnet 192.168.1.254 << FOE
<password>
ip route status
FOE
for the script "getit" and called it like this "./getit > filename".
However, the telnet session does not seem to get established this way.
Any ideas how to do it right?
Thanks a lot in advance,
Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:11 EDT