Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Calling a Rebol Script form a CGI

From: pwawood:gm:ail at: 27-Dec-2008 13:36

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