There is another difference here which is not mentioned abovepreviously.
subprocess.Popen
executes the as<command> as a subprocess. In my case, I need to execute file which<a> which needs to communicate with another program , <b>.
I tried subprocess, and execution was successful. However could<b> could not comm w/ communicate with <a>. everythingEverything is normal when I run both from the terminal.
One more: (NOTE: kwrite behaves different from other appsapplications. If you try the below with firefoxFirefox, the results will not be the same.)
If you try os.system("kwrite")
, program flow freezes until the user closes kwrite. To overcome that I tried instead os.system(konsole -e kwrite)
. This time program continued to flow, but kwrite became the subprocess of the konsoleconsole.
Anyone runs the kwrite not being a subprocess (i.e. atin the system monitor it must be appear at the leftmost edge of the tree).