Maybe I'm totally wrong but maybe the program is outputting to stderr
which you seem to be ignoring:
(stdoutOutput, stderrOutput) = subprocess.Popen(args,
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
print "stdout", stdoutOutput
print "stderr", stderrOutput
On Thu, Nov 12, 2009
i have no clue. that looks like it should be right.
maybe there's an os issue ?
there's a version of subprocess that ships in paster
/paste/util/subprocess24
try importing that as subprocess ?
a bunch of the paste scripts use that as a failover if the main dist
of subprocesss isn't available
On Nov 12, 8:32 am, gsandorx wrote:
> However, even I made my question related to Postfix, I have the same
> problem with other app I've developed that need to call external
> programs/scripts and it would be nice to get the output - just like
import os
os.popen("ls -al /var/www").readlines()
Oh, you're right. I have thought about using MySQL/PostgreSQL, but
it's not that easy due to some specific configurations I have on
Postfix. I'm working on it.
However, even I made my question related to Postfix, I have the same
problem with other app I've developed that need to call external
pro
On Nov 11, 5:09 pm, gsandorx wrote:
> PS: I'm trying to manage a Postfix mail server. The commands I want to
> get the output from is "postfix reload", "postmap hash:/etc/postfix/
> virtual"
I don't have an answer for your original question, but,
http://www.postfix.org/MYSQL_README.html and
ht
Hi everyone,
I'm developing a pylons-app to manage a mail server (postfix). In my
app, I call several external programs using
output = subprocess.Popen(args, stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()[0]
However, I'm unable to get the programs output. The output gets
printed a