[Tutor] Running shell command
Ricardo DueƱas Parada
rduenasp at gmail.com
Fri May 30 05:26:44 CEST 2008
Hello list,
I'm new in python, and I have a question about a program I am writing.
I want ton make an application that shows me a system variable, and
when it changes, but I am having a trouble when I try to run the command.
The command is smartctl on the hdd, and it can be only accesed by su.
When I run the command os.system in python, obviously he asks me for the
password, and the program stops until I wirte it. . Is there any way to
write
the password from the python script?, or what do you recommend me?
Thanks in advance,
_Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080529/d7719d9d/attachment.htm>
More information about the Tutor
mailing list