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")

留言

這個網誌中的熱門文章

error message : configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "%)']/following::android.widget.EditText"

OSError: [Errno 22] Invalid argument: