I have a simple CGI program that accepts data from a form does stuff with it. Of course it crashes the first time, and the server error message is not helpful. It is run by means of the line at the front: #!c:/rebol-sdk/tools/rebcmd.r -cs A CGI program can be run from the REBOL console, but the input form is not available with that approach. What I want to do is put code in the program that says, in effect: IF I was started by a web browser THEN accept data from the html form ELSE ask for the data items from the console This would allow me to run the script "off-line" so to speak and see the error messages. The question is, is there something available in REBOL that I can use to detect if the program was run through the console or through CGI? Thank you.