Created
December 4, 2012 17:48
-
-
Save stevejenkins/4206793 to your computer and use it in GitHub Desktop.
Power Cycle Modem (Outlet 2) and Router (Outlet 3) on BayTech RPC unit
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/php -q | |
<? | |
print("open 192.168.1.200\n"); | |
sleep(2); | |
print("username\r"); | |
sleep(2); | |
print("password\r"); | |
sleep(2); | |
print("REBOOT 2\r"); | |
sleep(2); | |
print("Y\r"); | |
sleep(15); | |
print("REBOOT 3\r"); | |
sleep(2); | |
print("Y\r"); | |
sleep(15); | |
print("LOGOUT\r"); | |
sleep(2); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment