#/usr/bin/python
import os
name = "ABC" #ABC是具体的模块名,产品经理每一次给的模块名字都不一样
os.environ['name'] = str(name) #把python的变量转变成shell变量
os.system("echo '*/1 * * * * source /etc/profile && python /share/yunwei/script/watchdog/open/$name/$nameCheck.py > /dev/null 2>&1'>> /var/spool/cron/root")
#/usr/bin/python
import os
name = "ABC" #ABC是具体的模块名,产品经理每一次给的模块名字都不一样
cmd_template = "echo '*/1 * * * * source /etc/profile && python /share/yunwei/script/watchdog/open/{name}/{name}Check.py > /dev/null 2>&1'>> /var/spool/cron/root"