new parameters
This commit is contained in:
+3
-3
@@ -4,8 +4,8 @@ import httplib2
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
|
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
|
||||||
USER = "root"
|
USER = sys.argv[2]
|
||||||
PASS = "root"
|
PASS = sys.argv[3]
|
||||||
|
|
||||||
h = httplib2.Http(cache=None, timeout=0.1)
|
h = httplib2.Http(cache=None, timeout=0.1)
|
||||||
h.add_credentials(USER, PASS)
|
h.add_credentials(USER, PASS)
|
||||||
@@ -14,4 +14,4 @@ try:
|
|||||||
resp
|
resp
|
||||||
print"OK"
|
print"OK"
|
||||||
except:
|
except:
|
||||||
print"Asic not avalible"
|
print"Asic not avalible"
|
||||||
Reference in New Issue
Block a user