All Questions
3
questions
0
votes
1
answer
271
views
spawn, expect, send aborts during scp transmission
I have a basic scp sending mechanism with spawn, expect and send.
However it gets aborted during the scp transmission.
Here is the expect command:
expect -c "spawn sh -c {scp -r -P 22 /tmp/rootfs/* ...
0
votes
1
answer
996
views
Expect not working using -c arguments
So I have an expect script like this that works:
#!/usr/bin/expect
spawn scp [email protected]:* .
expect {
password: {send "mypassword"; exp_continue}
}
Based on the man page for expect, I think I ...
1
vote
1
answer
2k
views
Why doesn't redirect work for scp password input?
I want to copy from remote box with scp, while the fact that each time I have to re-enter password is annoying. So I store my password in plain text and expect the following code should work
scp -...