[Tutor] python 2.3.4, how to use os.system and collect it's output to a file.
Thirupathaiah Gande (tgande)
tgande at cisco.com
Tue Aug 2 17:40:12 CEST 2011
Hi,
I have Python 2.3.4.
I want to use os.system command and collect a command's output to a
file. But it is not collecting all the output. It is truncating..
Code is as below.
cmd = "%s rl -comp %s@%s/%d >> %s" % (C_CMD, i, branch, x,
temp_acme_rl_log)
cmd_res = os.system( cmd )
What I am missing?
Thanks
gande
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110802/e6564914/attachment.html>
More information about the Tutor
mailing list