Skip to content

Instantly share code, notes, and snippets.

@figital
Forked from betrcode/build-failed.sh
Created July 28, 2014 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save figital/d33760ec3e00a87485cd to your computer and use it in GitHub Desktop.
Save figital/d33760ec3e00a87485cd to your computer and use it in GitHub Desktop.
#!/bin/sh
spawn telnet 1.3.3.184 4998
expect "Escape character is '^]'."
send "setstate,1:2,1\r"
expect "setstate,1:2,1"
#!/bin/sh
spawn telnet 1.3.3.184 4998
expect "Escape character is '^]'."
send "setstate,1:2,0\r"
expect "setstate,1:2,0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment