1. 程式人生 > >python 順序執行任務

python 順序執行任務

entity ide clas class and con popen import wifi

#!/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 順序執行任務