Add Forth (Gforth) CGI program example to cgi.md

This patch is provided to Tilde.club under the terms of
GNU General Public License, any version
published by the Free Software Foundation.
This commit is contained in:
xwindows
2026-10-22 15:00:24 +00:00
committed by deepend
parent 35ac3d947b
commit dc76fec2e6
+11
View File
@@ -183,6 +183,17 @@ would be noted in each example.
(terpri) (terpri)
(princ "Hello World!") (terpri) (princ "Hello World!") (terpri)
) )
- Forth:
#! /usr/bin/gforth
." Content-Type: text/plain" CR
CR
." Hello World!" CR
bye
Note that the space between <q>`#!`</q> and <q>`/usr/bin/gforth`</q> in the shebang line,
as well as the existence of <q>`bye`</q> statement at the end of program,
are essential for a correct operation.
Pick the language you like, Pick the language you like,
put the script (or executable) in a file anywhere inside your <q>`public_html`</q> subdirectory put the script (or executable) in a file anywhere inside your <q>`public_html`</q> subdirectory