<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
ozan SARI wrote:
<blockquote
 cite="mid:8843bd8a0704270224t57b7f295wf09b0a3ae1866224@mail.gmail.com"
 type="cite">
  <meta http-equiv="Context-Type"
 content="text/html; charset=ISO-8859-1">
  <div>Hi , </div>
  <div> </div>
  <div>I  run  a  python  acript   with os.system('script.py')</div>
  <div> </div>
  <div>I  want   save command prompt screen  in  a  text file
(everything )   how  can  I  do  this?</div>
  <div> </div>
  <div>Thanks   for your  help</div>
  <div> </div>
  <div> </div>
  <div>Ozan </div>
</blockquote>
check out using the<a href="subprocess%20module"> subprocess module
http://docs.python.org/lib/node529.html</a> It seems to be the new<br>
replacement for os.system spawn, popen .... It has specific stdout,
stderr and stdin handling.<br>
<br>
sph<br>
<br>
</body>
</html>