#!/usr/local/bin/expect -f
puts $argv
set fl [lindex $argv 0]
set pw [lindex $argv 1]
spawn scp $fl $REMOET_SERVER:$PATH
expect "*password:"
#following $pw is carriage return
send "$pw
"
expect eof
#!/usr/local/bin/expect -f
puts $argv
set fl [lindex $argv 0]
set pw [lindex $argv 1]
spawn scp $fl $REMOET_SERVER:$PATH
expect "*password:"
#following $pw is carriage return
send "$pw
"
expect eof