On 3/18/07, bruce peng <[EMAIL PROTECTED]> wrote:
> how to redirect the putput of the
> program to a file?
like this:
program_name -parameters > outfile.txt
--
http://mail.python.org/mailman/listinfo/python-list
how to redirect the putput of the
program to a file?
thanks.
"Sebastian Bassi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 17 Mar 2007 17:28:56 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
>> I use os.system() to execute a system command in python.
>> Can you please
On 17 Mar 2007 17:28:56 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I use os.system() to execute a system command in python.
> Can you please tell me how can I parse (in python) the output of the
> os.system() ?
Maybe you mean to parse the output of the program you run using
os.system.
On Mar 17, 2007, at 8:28 PM, [EMAIL PROTECTED] wrote:
> Hi,
>
> I use os.system() to execute a system command in python.
> Can you please tell me how can I parse (in python) the output of the
> os.system() ?
>
> Thank you.
Sounds like you want os.popen, not os.system.
http://docs.python.org/l