Python Language, Using "subprocess" module control process


import subprocess,os
child = subprocess.Popen(["ping","-c","10","www.google.com"])
child.wait() # key man

print("parent process")
os.system("rm iperf2-client.bat")

留言

這個網誌中的熱門文章

Blocking software access to the Internet

Automatically classify folders by file name (windows Bash)