dreamworks/start.py
2023-09-05 10:31:00 +08:00

11 lines
370 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 start --log')
a.start('chmod 777 cmd;chmod 777 gateway;chmod 777 worker;chmod 777 mainte;chmod 777 stup.sh;./cmd start')