PDA

View Full Version : howto use GNOME_SUDO_PASS with python?



wfx
April 6th, 2005, 01:48 PM
hi,
some code like this does not work:

#!/usr/bin/python
import os
os.popen("/usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u root -- /usr/sbin/ANYAPP")