open("ls -l |", "r") ??

darked at my-deja.com darked at my-deja.com
Fri Feb 9 13:30:55 EST 2001


Hi Steve,

this works for me:

import os
file_list = os.popen('ls -l').readlines()

Greetings

Darek


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list