Skip to content

Instantly share code, notes, and snippets.

View romandobra's full-sized avatar
🇨🇦
Open for proposals

romandobra

🇨🇦
Open for proposals
View GitHub Profile
@romandobra
romandobra / send-to-console.expect
Last active August 23, 2024 08:04
cat piped_script.sh | expect send-to-console.expect
#!/usr/bin/expect -f
set timeout -1
spawn virsh -c qemu:///system console vm1
expect "Connected"
send "\r"
expect "debian-live login: "
send "root\r"