problem with subprocess
lists at cheimes.de
Fri Jul 10 13:21:43 EDT 2009
>> I am using subprocess because I need store the pid. Any suggestions?
> Sorry, I was forgot the parameter shell=True.
> In : subprocess.call('DISPLAY=:99
You should avoid using the shell=True parameter. It may result in
security issues and it consumes more resources. Try this:
env = os.environ.copy()
env["DISPLAY"] = ":99"
More information about the Python-list