[Tutor] python newbie..system call help

Alan G alan.gauld at freenet.co.uk
Wed Jul 13 20:00:20 CEST 2005


> of useful stuff. I still need to workout the best way to ask a user 
> for a root password, show **** when typed and then pass it to the 
> system...

There is a module for password handling - getpass I think it is 
called,
but a browse of the library docs should find it.

The other one you might need is popen() - there are several versions
- which will allow you to read back the results of your system
command - there is a new module 'command' in v2.4 too, butr I haven't
upgraded yet...

Alan G. 



More information about the Tutor mailing list