SLUG Mailing List Archives
- To: slug@xxxxxxxxxxx
- Subject: [SLUG] SOS
- From: Rajat.Sharma@xxxxxxxxxxxxxx
- Date: Tue Oct 31 14:33:11 2000
I am trying to make an automated telnet script. The expect command is there
running on my machine, but still I am not able to run it properly. I have tried
LoginName is : linus
Password : ChangeMe
Hostname : aald02
Code is as follows ->
send "linus" # this says the "send" command not found....I
don't know why ? TCL is installed on my comp.
} | telnet aald02
and this code too
expect "Password:" # This code gives the information on the term, as shown
below with "=>"
echo "ChangeMe" # into the machine but comes out with the following
code => Trying Ip Address.......
ls # => Connected to
the IP address
# => Escape
character is ^]
# => Conncection
closed by the foregin host
} | telnet aald02 #
I would be grateful, if someone suggests an alternative.
Thanks in advance,
Ph. +61.2.96990044 Extn. 3058