How to Access Unix Shell

Neale nhirsh2 at ieee.org
Mon Jun 14 10:15:12 EDT 2004


> > > [[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?



More information about the Python-list mailing list