cp.sh file
#!/usr/bin/expect -f set filename [lindex $argv 0]; spawn scp -v /temp/$filename root@192.168.1.1:/tmp/root/ expect "Enter passphrase" send "\r" ...
No comments:
Post a Comment