> required. So far, I've figured out that I can use urllib to fetch 
> the file
> and the commands module to execute some system commands.
> Any ideas on how Ican envoke bash and pass on the users input to 
> bash.

Look at the Subprocess module and the Popen class.

Check the examples of how tyo simulate the now deprecated
popen functions. Basically they allow you to execute an external
program and control the stdin/stdout streams from your program.

You can also read some introductory stuff with examples on my
tutor site under the OS topic.

Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to