Re: passing command line arguments to executable

2010-04-06 Thread Bror Johansson
On 2010-04-03 18:09, mcanjo wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the input file, I hit enter, and then it asks me for and output filename, I hit enter

Re: passing command line arguments to executable

2010-04-05 Thread mcanjo
On Apr 4, 6:32 am, Simon Brunning si...@brunningonline.net wrote: On 3 April 2010 18:20, mcanjo mca...@gmail.com 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 =

Re: passing command line arguments to executable

2010-04-05 Thread Patrick Maupin
On Apr 5, 11:22 am, mcanjo mca...@gmail.com wrote: On Apr 4, 6:32 am, Simon Brunning si...@brunningonline.net wrote: On 3 April 2010 18:20, mcanjo mca...@gmail.com wrote: I tried doing the following code: from subprocess import Popen from subprocess import PIPE, STDOUT exefile

Re: passing command line arguments to executable

2010-04-04 Thread Francesco Bochicchio
On 3 Apr, 19:20, mcanjo mca...@gmail.com wrote: On Apr 3, 11:15 am, Patrick Maupin pmau...@gmail.com wrote: On Apr 3, 11:09 am, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a

Re: passing command line arguments to executable

2010-04-04 Thread Simon Brunning
On 3 April 2010 18:20, mcanjo mca...@gmail.com 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 = STDOUT) exefile.communicate('MarchScreen.pmm\nMarchScreen.out')[0] and

Re: passing command line arguments to executable

2010-04-04 Thread Gabriel Genellina
On 4 abr, 06:17, Francesco Bochicchio bieff...@gmail.com wrote: On 3 Apr, 19:20, mcanjo mca...@gmail.com wrote: On Apr 3, 11:15 am, Patrick Maupin pmau...@gmail.com wrote: On Apr 3, 11:09 am, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code)

Re: passing command line arguments to executable

2010-04-04 Thread Joshua
On 4/3/10 12:09 PM, mcanjo wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the input file, I hit enter, and then it asks me for and output filename, I hit enter

passing command line arguments to executable

2010-04-03 Thread mcanjo
I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the input file, I hit enter, and then it asks me for and output filename, I hit enter a second time and it goes off and

Re: passing command line arguments to executable

2010-04-03 Thread Patrick Maupin
On Apr 3, 11:09 am, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the input file, I hit enter, and then it asks me for and output

Re: passing command line arguments to executable

2010-04-03 Thread Simon Brunning
On 3 April 2010 17:09, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the input file, I hit enter, and then it asks me for and output

Re: passing command line arguments to executable

2010-04-03 Thread mcanjo
On Apr 3, 11:15 am, Patrick Maupin pmau...@gmail.com wrote: On Apr 3, 11:09 am, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a Command prompt window pops up. The program asks me for the

Re: passing command line arguments to executable

2010-04-03 Thread Patrick Maupin
On Apr 3, 12:20 pm, mcanjo mca...@gmail.com wrote: On Apr 3, 11:15 am, Patrick Maupin pmau...@gmail.com wrote: On Apr 3, 11:09 am, mcanjo mca...@gmail.com wrote: I have an executable (I don't have access to the source code) that processes some data. I double click on the icon and a

passing command line arguments

2007-09-07 Thread Brian McCann
Hi, when I run the script show_args2.py # ./show_args2.py 1 2 3 I get the following error Traceback (most recent call last): File ./show_args2.py, line 4, in ? print 'The arguments of %s are %s' %s \ NameError: name 's' is not defined #

RE: passing command line arguments

2007-09-07 Thread Brian McCann
Darren, Thanks From: [EMAIL PROTECTED] on behalf of darren kirby Sent: Fri 9/7/2007 1:58 PM To: python-list@python.org Subject: Re: passing command line arguments quoth the Brian McCann: Hi, when I run the script show_args2.py # ./show_args2.py 1 2 3

Re: passing command line arguments

2007-09-07 Thread Carsten Haese
On Fri, 2007-09-07 at 12:47 -0400, Brian McCann wrote: Hi, when I run the script show_args2.py # ./show_args2.py 1 2 3 I get the following error Traceback (most recent call last): File ./show_args2.py, line 4, in ? print 'The arguments of %s are %s' %s \ NameError:

Re: passing command line arguments

2007-09-07 Thread darren kirby
quoth the Brian McCann: Hi, when I run the script show_args2.py # ./show_args2.py 1 2 3 I get the following error Traceback (most recent call last): File ./show_args2.py, line 4, in ? print 'The arguments of %s are %s' %s \ NameError: name 's' is not defined