How to Access Unix Shell

Lee Harr missive at frontiernet.net
Mon Jun 14 15:15:57 EDT 2004


On 2004-06-14, Neale <nhirsh2 at ieee.org> wrote:
>> > > [[snip]]
>> > How about :
>> > ===
>> > files = os.listdir(".")
>> > ===
>> >
>> > Bye.
>> > --
>> > -------------------------------------------------------------------------
>> > Miki Tebeka <miki.tebeka at zoran.com>
>> 
>> Well, I could claim that I knew about listdir but was simply answering the
>> original question which was how to run arbitrary shell commands.
>> 
>> But in fact I knew nothing of listdir (all of my coding so far has been with
>> wx(Python|Widgets) so I rarely use the python system stuff) , so I thank you
>> for the education :-).
>> 
>> Pax.
> Thank you for such high quality help. 
>
> If there are other Unix command functions like listdir, where/how do I
> find them? Is there a particular directory in Python, maybe?


http://python.org/
http://python.org/doc/
http://docs.python.org/modindex.html
http://docs.python.org/lib/module-os.html
http://docs.python.org/lib/module-shutil.html




More information about the Python-list mailing list