Expect

For ssh, in a sh script:

#!/bin/sh
expect -c "
spawn ssh localhost
expect \"Are you sure you want to continue connecting (yes/no)? \"
send \"yes\r\"
interact
"
software/expect.txt · Last modified: 2013/09/19 16:40 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki