AAAAAAAAA(A)/app/cbsrun/sbin> cat reloadtuxconfig.exp
puts "Start"
set i 1
set max_i [lindex $argv 0]
set passwd [lindex $argv 1]
spawn reloadtuxconfig
while {"$i" < "$max_i"} {
expect {
":" {send "$passwd
";}
}
incr i
}
expect eof
AAAAAAAAA(A)/app/cbsrun/sbin> expect reloadtuxconfig.exp 13 czcb7753
Start
spawn reloadtuxconfig
Password for OPENINFO (SRVGRP=PLATFORM):
Password for OPENINFO (SRVGRP=PLATREAL):
Password for OPENINFO (SRVGRP=COMGROUP):
Password for OPENINFO (SRVGRP=SAVGROUP):
Password for OPENINFO (SRVGRP=CADGROUP):
Password for OPENINFO (SRVGRP=SETGROUP):
Password for OPENINFO (SRVGRP=LONGROUP):
Password for OPENINFO (SRVGRP=ACCGROUP):
Password for OPENINFO (SRVGRP=FORGROUP):
Password for OPENINFO (SRVGRP=EXTGROUP):
Password for OPENINFO (SRVGRP=RPTGROUP):
Password for OPENINFO (SRVGRP=ESTGROUP):
xxxxxxxxxxx