[Zope] Giving out STDOUT
Jim Washington
jwashin@vt.edu
Wed, 12 Mar 2003 08:01:30 -0500
Sorin Marti wrote:
> Hi all,
>
> I wrote an external method which compiles a TeX-Source with latex2html.
> It's very simple... it only calls the command with
>
> os.system('latex2html /path/to/uploaded_files/%s' %file.filename)
>
> This command causes an output like "This is latex2html version..." and
> so on.
>
> Now I want to give out this Output in a Textarea on a zope site. Is this
> possible in a way? I tried to do that with the return value but it
> didn't work...
>
>
You may wish to consult the python documentation about the os.popen
functions. They can return stdin, stderr, stdout, etc.
-- Jim Washington