#!/usr/bin/expect -f
set filename [lindex $argv 0]
spawn scp $filename” mstefl@mstefl.cz:/home/mstefl/
expect “password:”
send — “HESLO\r”
expect eof
Poznámky :
* \r – enter
#!/usr/bin/expect -f
set filename [lindex $argv 0]
spawn scp $filename” mstefl@mstefl.cz:/home/mstefl/
expect “password:”
send — “HESLO\r”
expect eof
Poznámky :
* \r – enter