stdout of external program.

Paul Lemelle pdl5000 at yahoo.com
Thu Jul 29 13:57:05 EDT 2010


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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100729/19d2bfa9/attachment.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /