RE: Access stdout from external program.

2010-07-30 Thread Paul Lemelle
JM, Thanks for the response.  I am trying to capture the stdout of a program from another program. Example, I want to launch the below program from a second python script then capture the first's program stdout to a file or variable. Is this possible? Thanks again, Paul Paul Lemelle

stdout of external program.

2010-07-29 Thread Paul Lemelle
HELP! :) I am trying to output the following program's output to either a file or variable, how can this be done? # Writing the output to a standard argv argument #1/usr/bin/python import sys for arg in sys.argv:   print arg #END Thanks, Paul --

Unable to write output from os.path.walk to a file.

2008-06-04 Thread Paul Lemelle
I Am trying to output the os.path.walk to a file, but the writelines method complains Below is the code, any helpful suggestions would be appreciated. def visit(arg, dirnames, names): print dirnames dirinput = raw_input(Enter directory to read: ) listdir = os.path.walk

Re: Unable to write output from os.path.walk to a file.

2008-06-04 Thread Paul Lemelle
looking for? Thanks, Jeff On Wed, Jun 4, 2008 at 2:54 PM, Paul Lemelle [EMAIL PROTECTED] wrote: I Am trying to output the os.path.walk to a file, but the writelines method complains Below is the code, any helpful suggestions would be appreciated. def visit(arg, dirnames

Re: Pexpect question.

2008-04-02 Thread Paul Lemelle
, but the documentaiton link appear to be broken. Could you recommend another site? Thanks, Paul On 30 Mar 2008 21:39:46 GMT, Jorgen Grahn [EMAIL PROTECTED] wrote: On Fri, 28 Mar 2008 08:12:36 -0700 (PDT), Paul Lemelle [EMAIL PROTECTED] wrote: I am trying separate a script that users pexpect

pexpect

2008-03-29 Thread Paul Lemelle
I am trying separate a script that users pexpect into various functions within the same expect session. The problem is that the function does not return control back Main. Any insight into this issue would be greatly appreciated. Below is sample code of the problem. Thanks, Paul

Pexpect question.

2008-03-28 Thread Paul Lemelle
I am trying separate a script that users pexpect into various functions within the same expect session. The problem is that the function does not return control back Main. Any insight into this issue would be greatly appreciated. Below is sample code of the problem. Thanks, Paul

Create multiple directories

2008-02-24 Thread Paul Lemelle
I am somewhat new to Python and I am trying to create a program that automatically creates directories from a range of numbers. I researched the os.mkdir os.makedirs methods, but they do not seem to (I don't know) how to include an argumnet to step through my list. I woudl like to do the

Re: Create multiple directories

2008-02-24 Thread Paul Lemelle
7stud Jeff, Thanks for yoru input - there's still a few things for me to learn. :) Paul On Sun, 24 Feb 2008 18:07:15 -0800 (PST), 7stud [EMAIL PROTECTED] wrote: On Feb 24, 6:27 pm, Jeff Schwab [EMAIL PROTECTED] wrote: Paul Lemelle wrote: I am somewhat new to Python and I am trying