Re: running commands with sudo & python

2006-09-29 Thread db
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 -- http://mail.p

Re: running commands with sudo & python

2006-09-28 Thread John Bauman
[EMAIL PROTECTED] wrote: > Hi! > I must execute a command with os.command(), but with root permissions. > Is there anyway to do that with python? > Thanks > http://en.wikipedia.org/wiki/Setuid Of course, it's not generally a good idea to have your program keep root permissions after it does what

running commands with sudo & python

2006-09-28 Thread coldsoul4e
Hi! I must execute a command with os.command(), but with root permissions. Is there anyway to do that with python? Thanks -- http://mail.python.org/mailman/listinfo/python-list