Re: [Tutor] Running shell command

2008-05-30 Thread Ricardo Dueñas Parada
Thanks for your answers. How can I make that action more secure? Is there any way for running the program from a regular user (non su) without having the password within the code? _Ricardo 2008/5/30 Alan Gauld <[EMAIL PROTECTED]>: > > "Brett Wilkins" <[EMAIL PROTECTED]> wrote > >> Just as a sid

Re: [Tutor] Running shell command

2008-05-30 Thread Alan Gauld
"Brett Wilkins" <[EMAIL PROTECTED]> wrote Just as a side point, wouldn't the easiest way be to run the script under sudo? It's safer imho than putting the sudo password in programmatically... Yes, but he is (presumably) already using sudo within os.system. He wants to avoid putting in the pas

Re: [Tutor] Running shell command

2008-05-30 Thread Brett Wilkins
Just as a side point, wouldn't the easiest way be to run the script under sudo? It's safer imho than putting the sudo password in programmatically... Cheers --Brett On 30/05/2008, at 7:21 PM, Alan Gauld wrote: "Ricardo Dueñas Parada" <[EMAIL PROTECTED]> wrote When I run the command os.syste

Re: [Tutor] Running shell command

2008-05-30 Thread Alan Gauld
"Ricardo Dueñas Parada" <[EMAIL PROTECTED]> wrote 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? os.system is a very basi

[Tutor] Running shell command

2008-05-29 Thread Ricardo Dueñas Parada
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.