[Solved] Sub-process in Python execute two task? [closed]
[ad_1] import subprocess subprocess.Popen([‘xterm’, ‘-hold’, ‘-e’, ‘nmap -sV 74.125.130.100’]) this is more easy to execute [ad_2] solved Sub-process in Python execute two task? [closed]
[ad_1] import subprocess subprocess.Popen([‘xterm’, ‘-hold’, ‘-e’, ‘nmap -sV 74.125.130.100’]) this is more easy to execute [ad_2] solved Sub-process in Python execute two task? [closed]
[ad_1] 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”}; … Read more
[ad_1] 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 [ad_2] solved Python program to execute any other Python program as argument? [duplicate]