Re: [Tutor] python newbie..system call help

2005-07-14 Thread Martin Walsh
Mike Pindzola wrote: > I have figured many things out. system works, i just forgot to type > os.system(). I have been looking into the os module and am finding alot > 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

Re: [Tutor] python newbie..system call help

2005-07-13 Thread Alan G
> 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

Re: [Tutor] python newbie..system call help

2005-07-12 Thread Danny Yoo
On Tue, 12 Jul 2005, Mike Pindzola wrote: > I have figured many things out. system works, i just forgot to type > os.system(). I have been looking into the os module and am finding alot > of useful stuff. I still need to workout the best way to ask a user for > a root password, show when ty

Re: [Tutor] python newbie..system call help

2005-07-12 Thread Mike Pindzola
I have figured many things out. system works, i just forgot to type os.system(). I have been looking into the os module and am finding alot 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... thanks for

Re: [Tutor] python newbie..system call help

2005-07-12 Thread Mike Pindzola
Yes, I have did 'import os'. For starters I want to read the result of 'pwd' and print it out in the program for the user to see what path is being read. Also, I need to have a function to handle root access if the user does not have such privledges since I will be mounting and unmounting hardw

Re: [Tutor] python newbie..system call help

2005-07-12 Thread jfouhy
Quoting Mike Pindzola <[EMAIL PROTECTED]>: > Should I be even trying to make a system call? Is there a better way to > talk to the shell? Either way, please enlighten me. Thanks. There may be a better way to achieve what you want to do, without using the shell at all. For example, the os and os.