In article <mailman.19336.1397098937.10748.gnu-misc-disc...@gnu.org>,
 Richard Stallman <r...@gnu.org> wrote:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> 
> How, in Python, can I execute a string as a shell command?

Use os.system()

https://docs.python.org/2/library/os.html#process-management

-- 
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
_______________________________________________
gnu-misc-discuss mailing list
gnu-misc-discuss@gnu.org
https://lists.gnu.org/mailman/listinfo/gnu-misc-discuss

Reply via email to