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

Maarten ter Huurne maarten at treewalker.org
Tue Jul 7 17:46:39 EDT 2009

On Tuesday 07 July 2009, Steve Freitas wrote:

> 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',))

Did you try "args=('blah', 'blah')"?

Unlike when using the full command line, spaces in arguments are most likely 
preserved instead of acting as separators.


More information about the Twisted-Python mailing list