Re: [Twisted-Python] sudo asking for a password during utils.getProcessOutputAndValue()

2009-07-09 Thread Steve Freitas
On Tue, 2009-07-07 at 19:25 -0400, Jean-Paul Calderone wrote: > I suppose your sudoers configuration file wasn't recognizing the command > before (since it was indeed a different command) and so wasn't letting you > go through the no-password case. Ahh, okay. Between that and Maarten's illuminat

Re: [Twisted-Python] sudo asking for a password during utils.getProcessOutputAndValue()

2009-07-07 Thread Steve Freitas
Hi Michael On Tue, 2009-07-07 at 22:41 +0100, Michael Thompson wrote: > Does working mean it sucessfully asks for the password or that it > doesn't ask for the password? It successfully doesn't ask for the password. > sudo can cache your password for a period of time, so you won't have > to e

Re: [Twisted-Python] sudo asking for a password during utils.getProcessOutputAndValue()

2009-07-07 Thread Steve Freitas
Hi Maarten, On Tue, 2009-07-07 at 23:46 +0200, Maarten ter Huurne wrote: > Did you try "args=('blah', 'blah')"? Ah ha! That did it. Wonder why that works. Thanks! Steve ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedm

[Twisted-Python] sudo asking for a password during utils.getProcessOutputAndValue()

2009-07-07 Thread Steve Freitas
Hi all, If from inside my twisted program I do... commands.getstatusoutput('sudo blah blah') ...it works great. If instead I do... utils.getProcessOutputAndValue('/usr/bin/sudo', path='/usr/bin', args=('blah blah',)) ...it gets stuck asking for the sudo password. I've tried a bunch of variatio