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