passing command line arguments to executable

Simon Brunning simon at
Sun Apr 4 13:32:33 CEST 2010

On 3 April 2010 18:20, mcanjo <mcanjo at> wrote:
> I tried doing the following code:
> from subprocess import Popen
> from subprocess import PIPE, STDOUT
> exefile = Popen('pmm.exe', stdout = PIPE, stdin = PIPE, stderr =
> exefile.communicate('MarchScreen.pmm\nMarchScreen.out')[0]
> and the Command Prompt opened and closed, no exceptions were generated
> but the program didn't run. Am I doing something wrong?

Have you tried running pmm.exe from the command line? What does that
look like? Does it matter what the current working directory is at the

Simon B.

More information about the Python-list mailing list