os.system() with imbeded quotes on centos
Cameron Simpson
cs at zip.com.au
Fri Apr 5 19:53:57 EDT 2013
On 05Apr2013 16:36, Chris Rebert <clp2 at rebertia.com> wrote:
| No need for third-party code, just use the std lib:
| http://docs.python.org/2/library/pipes.html#pipes.quote
| http://docs.python.org/3/library/shlex.html#shlex.quote
Ah, handy. I must say its quote quoting is kind of verbose, though.
| (But yeah, best of all is to just use `subprocess` with shell=False.)
Cheers,
--
Cameron Simpson <cs at zip.com.au>
Plague, Famine, Pestilence, and C++ stalk the land. We're doomed! Doomed!
- Simon E Spero
More information about the Python-list
mailing list