diff --git a/wiki/source/cgi.md b/wiki/source/cgi.md index 2ce26bf..3ae049e 100644 --- a/wiki/source/cgi.md +++ b/wiki/source/cgi.md @@ -183,6 +183,17 @@ would be noted in each example. (terpri) (princ "Hello World!") (terpri) ) +- Forth: + + #! /usr/bin/gforth + ." Content-Type: text/plain" CR + CR + ." Hello World!" CR + bye + + Note that the space between `#!` and `/usr/bin/gforth` in the shebang line, + as well as the existence of `bye` statement at the end of program, + are essential for a correct operation. Pick the language you like, put the script (or executable) in a file anywhere inside your `public_html` subdirectory