running commands with sudo & python

db duikboot at localhost.localdomain
Fri Sep 29 03:32:44 EDT 2006


Hi there,

I think you can do that with pexpect

http://pexpect.sourceforge.net/

good luck

On Thu, 28 Sep 2006 14:18:14 -0700, coldsoul4e wrote:
> Hi!
> I must execute a command with os.command(), but with root permissions.
> Is there anyway to do that with python? 
> Thanks






More information about the Python-list mailing list