[Tutor] Running shell command

Alan Gauld alan.gauld at btinternet.com
Fri May 30 19:30:37 CEST 2008


"Brett Wilkins" <lupin at orcon.net.nz> 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 password so he must take the
security risks associated with that approach.

Caveat emptor as they say!

Alan G 




More information about the Tutor mailing list