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
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
--
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
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
, 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
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
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
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
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