Answer the question
In order to leave comments, you need to log in
Why doesn't it go to background?
If you write something like md5sum /dev/urandom &
it will immediately go to the background, but if you run the same command on a remote host
expect -c 'spawn ssh -o StrictHostKeyChecking=no -o UserKnowHostFile=/dev/null [email protected] "md5sum /dev/urandom &" expect password; send "12345\n"; interact'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question