Denk je niet dat we veel meer kunnen zeggen over je probleem als je ook een relevant stukje code post?
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
OK. Uit auto_login_scp.exp:
Vervolgens in auto_login.exp
code:
1
2
3
4
5
6
| set host [lindex $argv 0] set u_user [lindex $argv 1] set u_pass [lindex $argv 2] set file_to_copy [lindex $argv 3] set destination [lindex $argv 4] source auto_login.exp |
Vervolgens in auto_login.exp
code:
1
2
3
4
| t_expect 3 "Are you sure you want to continue connecting" "send -- \"yes\r\"" t_expect 10 "Password:" send -- "$u_pass\r" |