Skip to content

Instantly share code, notes, and snippets.

View eric-create's full-sized avatar

Eric Merath eric-create

View GitHub Profile
@shalk
shalk / gist:7003628
Created October 16, 2013 06:51
virsh console with expect
#!/bin/bash
expect -c "
set timeout 10
spawn virsh console cvm1
expect {
\"Escape character\" {send \"\r\r\" ; exp_continue}
\"Escape character\" {send \"\r\r\" ; exp_continue}
\"login:\" {send \"root\r\"; exp_continue}
\"Password:\" {send \"111111\r\";}