10 lines
254 B
Python
10 lines
254 B
Python
import subprocess
|
|
|
|
class RunCmd(object):
|
|
def start(self,cmd):
|
|
self.cmd = cmd
|
|
subprocess.call(self.cmd,shell=True)
|
|
|
|
a = RunCmd()
|
|
a.start('chmod 777 cmd;chmod 777 gateway;chmod 777 worker;chmod 777 mainte;chmod 777 stup.sh;./cmd stop')
|