<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.2">
</HEAD>
<BODY>
Hi all,<BR>
<BR>
If from inside my twisted program I do...<BR>
<BR>
commands.getstatusoutput('sudo blah blah')<BR>
<BR>
...it works great. If instead I do...<BR>
<BR>
utils.getProcessOutputAndValue('/usr/bin/sudo', path='/usr/bin', args=('blah blah',))<BR>
<BR>
...it gets stuck asking for the sudo password. I've tried a bunch of variations in the latter call, like lumping the args into the executable string, getting rid of &quot;/usr/bin&quot; in the executable, changing the path to the executing user's home directory and so on. Any ideas?<BR>
<BR>
Thanks!<BR>
<BR>
Steve
</BODY>
</HTML>