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)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0