Created
June 6, 2016 19:25
-
-
Save pnasrat/972a52e3373e308269997bd8614cca02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env expect | |
spawn "./hyperkitrun.sh" | |
set pid [exp_pid] | |
expect "tc@box:~$" | |
send "sudo halt\r\n"; | |
expect { | |
timeout {exec kill -9 $pid; exit 1} | |
"reboot: System halted" | |
} | |
close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment