[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Redirecting I/O in a MacPerl Extension?



At 13.21 1998.03.23, Michael Schuerig wrote:
>At 18:03 Uhr +0100 23.03.1998, Chris Nandor wrote:
>
>> IIRC, MPCGI.c doesn't redirect anything with stdin/stdout.  It accept
>>Apple
>> Events from the web server, sends AEs to MacPerl, gets AEs back from
>> MacPerl, and sends AEs back to the web server.
>
>Maybe I've not been clear enough: If I write to STDOUT/STDERR from a
>MacPerl CGI it does not appear in MacPerl's window, but ends up at the
>web server (via MPCGI.c). And something like that is what I'd like to
>do.

Ah, right.  Matthias reminded me that this is handled via the MODE Apple
Event parameter.  I am not clear on all the meanings of the different
modes, but MacPerl.Frontend describes them.  It used to be that one would
have to "print" via MacPerl::Reply() instead of printing to STDOUT, but
this takes care of that.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch