Redirecting system output quietly

Madhusudhanan Chandrasekaran mc79 at cse.buffalo.edu
Mon Nov 15 19:03:01 EST 2004


Hi,
  I am a newbie here. I want to know how to redirect os.system("ls -af")
to a string variable without it barfing the answer of ls -af on the
screen.

Thanks in advance,
Madhusudhanan.C



More information about the Python-list mailing list