How can I save command prompt screen
Steven Howe
howe.steven at gmail.com
Fri Apr 27 11:21:11 EDT 2007
ozan SARI wrote:
> Hi ,
>
> I run a python acript with os.system('script.py')
>
> I want save command prompt screen in a text file (everything )
> how can I do this?
>
> Thanks for your help
>
>
> Ozan
check out using the subprocess module
http://docs.python.org/lib/node529.html <subprocess%20module> It seems
to be the new
replacement for os.system spawn, popen .... It has specific stdout,
stderr and stdin handling.
sph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070427/04dceeec/attachment.html>
More information about the Python-list
mailing list