[REBOL] Re: Calling a Rebol Script form a CGI
From: compkarori:g:mail at: 27-Dec-2008 7:35
Why are you starting another interpreter with 'call??
why not just
do %called.r
?
On Sat, Dec 27, 2008 at 6:36 PM, Peter W A Wood <pwawood-gmail.com> wrote:
> I would like to call a Rebol script to do some housekeeping from a
> Rebol CGI but when I try I have a problem that the output from the
> called script is appended to the output of the CGI script.
>
> Here is the cgi script:
>
> #!/Applications/Rebol/rebol -cs
>
> REBOL []
> print "Content-type: text/html^/"
>
> print [<HTML><BODY>]
> print ["From the CGI script"]
> print [</BODY></HTML>]
>
> call "/Applications/Rebol/rebol -cs called.r"
>
> Here is the called script:
>
> Rebol []
> print "From the called script"
>
> Here is the output received by the browser:
>
> <HTML> <BODY>
> From the CGI script
> </BODY> </HTML>
> From the called script
>
> Any suggestions?
>
> Regards
>
> Peter
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
Graham Chiu
http://www.synapsedirect.com
Synapse - the use from anywhere EMR.