3 ms·
I believe you would need to explicitly pass shell=True for that though.
by Redoubts 12y ago
I believe you would need to explicitly pass shell=True for that though.
- meowface 12y agoNope, 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"])