Skip to content Skip to sidebar Skip to footer

Run Os.system Commands On A New Terminal- Python 3

I am running a program which allows me to run terminal commands through my Python code which takes input from the user through the command line. This is the part of the code where

Solution 1:

can this solve your problem?

os.system('gnome-terminal -x chromium-browser')

Solution 2:

Use subprocess.popen("command")

Basically, run the subprocess in the background. & is a shell feature. Use popen instead

Post a Comment for "Run Os.system Commands On A New Terminal- Python 3"