Displaying 1 result from an estimated 1 matches for "makeadmin".
Did you mean:
mailadmin
2004 Aug 06
0
Python script to automate icecast
...= oper_password
self.host = host
self.port = port
self.tn = None
self.admin = 0
self.oper = 0
def Connect(self):
self.tn = Telnet(self.host, self.port)
return (self.tn != None)
def Status(self, toggle='off'):
if self.MakeAdmin():
return self.Command('status ' + toggle)
def Disconnect(self):
self.admin = 0
self.oper = 0
self.tn.close()
def MakeAdmin(self):
if not self.admin:
self.tn.write("ADMIN " + self.admin_password + "\n\n")...