[Tutor] writing to the shell

alan.gauld@bt.com alan.gauld@bt.com
Mon, 18 Feb 2002 10:25:08 -0000


> certain structure (I used shell globbing to do this, but could easily 
> use Python's regexes, 

Better to use the glob module

> it's already written), but how can I access my shell from a Python 
> script?

os.system() or if you want to read the output look at
os.popen() and popen2 etc...

HTH

Alan g