码迷,mamicode.com
首页 > 编程语言 > 详细

python 顺序执行任务

时间:2017-12-23 14:07:16      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:顺序   rto   pre   port   python   执行   and   mac   class   

#!/usr/bin/python
import os
import time

start_command="sh start-etl.sh "

es_mac_confPath         ="../conf/wifi_Solr/solrToES_mac.properties"
es_identity_confPath    ="../conf/wifi_Solr/solrToES_identity.properties"

task1 = start_command + es_mac_confPath
task2 = start_command + es_identity_confPath

os.popen(task1).read()
os.popen(task2).read()

 

python 顺序执行任务

标签:顺序   rto   pre   port   python   执行   and   mac   class   

原文地址:http://www.cnblogs.com/yangh2016/p/8093142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!