This is an old revision of the document!


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.1246838328.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0