How to execute a shell command through Python
Question: I am new to Python programming. I want to execute a shell command "at" from a
Python program. Can any one of the Python gurus help me out? Thanks in
advance.


Answer: The [`subprocess`](http://docs.python.org/library/subprocess.html) module can
be used for this purpose:

    
    
    import subprocess
    retcode = subprocess.call(["at", "x", "y", "z"])
    

Replace `x`, `y` and `z` with the parameters to `at`.

