cdt/cdt_6_0_x/org.eclipse.cdt.releng/myscp
author cawthron
Wed, 29 Jul 2009 14:30:25 -0500
changeset 37 c2bce6dd59e7
permissions -rw-r--r--
add cdt_6_0_x
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     1
#!/usr/bin/expect -f
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     2
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     3
set passwd [lindex $argv 0]
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     4
set timeout 6000
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     5
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     6
set id [eval spawn scp -qp [lrange $argv 1 end]]
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     7
expect "Password:" { send "$passwd\r" }
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     8
expect