Milan Andric wrote:
>
> Furthermore I just did
>
> import sys
> sys.stderr.write(os.system(cmd))
> sys.stderr.flush()
>
> to see what the error message from the command is in the production
> server log.
>
>
Try using the subprocess module (Python 2.4+) to call your program instead
of os.
This happens because the buffer from the os call is finite in size.
You probably weren't reading it originally... so the process blocked
while it waited for the buffer to empty out. Since you never read it,
the process stalls forever. That's why --quiet worked.
--~--~-~--~~--
On Tue, May 27, 2008 at 11:05 AM, Milan Andric <[EMAIL PROTECTED]> wrote:
> Worked just fine from the interpreter but I noticed some stuff being
> returned on stdout (same as on cmd line). So I added the --quiet
> option to htmldoc and now it seems fine and returns 0 in the
> interpreter. Maybe
On May 27, 11:05 am, Milan Andric <[EMAIL PROTECTED]> wrote:
> On May 27, 1:10 am, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
> > Milan Andric wrote:
> > > Hello,
>
> > > I have a helper-like django method that does a little pdf generation.
> > > For some reason when I run this view on the dev s
4 matches
Mail list logo