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