Hacker News new | ask | show | jobs
by Redoubts 4276 days ago
I believe you would need to explicitly pass shell=True for that though.
1 comments

Nope, it's not necessary. Test it with a vulnerable CGI app and call:

subprocess.call(["date"])

Or if bash is not your default shell:

subprocess.call(["bash", "-c", "date"])