without shell

Michael Chermside mcherm at mcherm.com
Fri Jun 10 13:32:50 EDT 2005


KM writes:
> can any linux command be invoked/  executed without using shell (bash) ?
> what abt security concerns ?

Yes.

See: http://docs.python.org/lib/module-subprocess.html

An exerpt:
> On Unix, with shell=False (default): In this case, the Popen class uses
> os.execvp() to execute the child program.

-- Michael Chermside




More information about the Python-list mailing list