Skip to content

Instantly share code, notes, and snippets.

@polm
Created March 3, 2014 14:46
Show Gist options
  • Save polm/9326491 to your computer and use it in GitHub Desktop.
Save polm/9326491 to your computer and use it in GitHub Desktop.
spawn frob -i plain bone.t3
send "\n\n\n\n\n\n\n\n\n\n"
while {1} {
expect {
"More" {send "\n"}
default break
}
}
while {1} {
set hole [expr int(rand()*5)+1]
expect ">"
send "play $hole\n"
expect {
"understand that command" continue
"file that comes" continue
default exit
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment