expect script on Solaris 10

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Mon Dec 11 2006 - 18:44:17 EST


Dear managers,

we just migrated an expect script like

#!/usr/local/bin/expect
set timeout -1
spawn /usr/local/bin/rsync -av -e /usr/bin/ssh --delete
/Library/SmartObjects/Applications root@10.0.0.200:/Library/SmartObjects
expect "password:"
send "12345\r"
expect "speedup is"

from a Solaris 9 box to a Solaris 10 machine. We installed tcl and
expect from source like we always do. However, when we start the script
under Solaris 10 we are asked for a password. Something is not working
properly. We then downloaded and installed binary packages from
sunfreeware.com.

tk-8.5a4-sol10-sparc-local
tcl-8.5a4-sol10-sparc-local
expect-5.43.0-sol10-sparc-local

We now get:

-bash-3.00# /opt/BackUp/netraSync
spawn /usr/local/bin/rsync -av -e /usr/bin/ssh --delete
/Library/SmartObjects/Applications root@10.0.0.200:/Library/SmartObjects
sh: /usr/local/bin/stty: not found
Password:

It is still not working!? We copied the script from the Sol9 box, so i
assume it's not our script. Any idea?

Thanks a lot!

Regards,

   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:41:19 EDT