Re: Run program from within Python

2008-08-06 Thread frankrentef
THNX for the links... lotta reading for the newbie! -- http://mail.python.org/mailman/listinfo/python-list

Re: Run program from within Python

2008-08-06 Thread giltay
On Aug 6, 3:42 pm, frankrentef <[EMAIL PROTECTED]> wrote: > stdout, stdin = popen2.popen2('c:\test\OpenProgram.exe 1 1') What Mike said about subprocess. Also, in regular Python strings, \t means a tab character. You need to replace \ with \\ in the programme path ('c:\\test\\OpenProgram.exe 1 1

Re: Run program from within Python

2008-08-06 Thread Mike Driscoll
On Aug 6, 2:42 pm, frankrentef <[EMAIL PROTECTED]> wrote: > Greetings all... > > Newbie to Python... need help with opening a file from within > Python... see the following code. > > import popen2 > stdout, stdin = popen2.popen2('c:\test\OpenProgram.exe 1 1') > keygen = stdout.read() > print "The k

Run program from within Python

2008-08-06 Thread frankrentef
Greetings all... Newbie to Python... need help with opening a file from within Python... see the following code. import popen2 stdout, stdin = popen2.popen2('c:\test\OpenProgram.exe 1 1') keygen = stdout.read() print "The keygen value is: %s" % keygen from the command line if I execute "OpenPr