Expect Script issues

From: RABENOJA@prodigy.net
Date: Tue May 21 2002 - 19:09:42 EDT


Dear Sun Gurus,

I have just installed expect 5.25 along with tcl-8.0
and tk-8.0 on a solaris 2.6 sparc 5.

I modified a script I saw posted over a month ago.
Here is a simple copy of my script:

#!/usr/local/bin/expect
log_file -noappend "telnetoutput.txt"
spawn telnet 138.10.12.144
expect "ogin: "
send "dude\r"
expect "assword: "
send "dude\r"
expect -r "$prompt"
send "cat /var/adm/messages | grep keyword"
send "exit\r"

The script gets to the password part and stops. The
prompt is then returned, almost looking like it tried
to insert the prompt for the password. I know the
password is correct and I also tried another account.
Can an Expect script expert help me figure this out.

Thank you,
Robert Abenoja
_______________________________________________
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:21 EDT