[Solved] Sub-process in Python execute two task? [closed]
import subprocess subprocess.Popen([‘xterm’, ‘-hold’, ‘-e’, ‘nmap -sV 74.125.130.100’]) this is more easy to execute solved Sub-process in Python execute two task? [closed]
import subprocess subprocess.Popen([‘xterm’, ‘-hold’, ‘-e’, ‘nmap -sV 74.125.130.100’]) this is more easy to execute solved Sub-process in Python execute two task? [closed]
So far so good! I found the answer recently by myself, still don’t have a reason why it works this way, but I suppose it’s all about internal difference of handling new processes in VM’s on different platforms. I had to edit the code this way, and now it works: String[] runcmd = {“java”,”-jar”,”/home/user/jar.jar”}; Runtime.getRuntime().exec(runcmd); … Read more
Unless you want to be able to launch several program at one ? import sys import subprocess def dorun(args): subprocess.Popen([sys.executable, args]) dorun(sys.argv[1]) 0 solved Python program to execute any other Python program as argument? [duplicate]