I am writing a bootstrap program that runs several individual programs simultaneously. Thus, I require each sub-program to have its own terminal window, in a manner that gives me the ability to start/stop each sub-program individually within the bootstrap.
I was able to do this on Windows using Popen and CREATE_NEW_CONSOLE (each sub-program has it's own .py file), however I am having trouble achieving this with Linux. I am using a Raspberry Pi and Python 2.7.9.
I have tried:
Subprogram = Popen([executable, 'Foo.py'], shell=True)
However this does not seem to create a new window.. and
os.system("python ./Foo.py")
Does not seem to create a new window nor allow me to terminate the process.
Other research has thus far proved unfruitful..
How can I do this? Many thanks in advance.