tBe a bit more helpful in the CGI description. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
HTML git clone git://r-36.net/geomyidae
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit fa26f7e1f75b2489635415af8815efb1f3b9880e
DIR parent a008a6b5af9fa5fb95ea950b72196548816990c4
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 11 Oct 2017 15:03:41 +0200
Be a bit more helpful in the CGI description.
Diffstat:
CGI | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
DIR diff --git a/CGI b/CGI
t@@ -79,7 +79,7 @@ The client will receive:
DYNAMIC CGI
For using dynamic CGI, the file needs to end in »dcgi«, which will switch on
-the interpretation of the returned lines by the script. The interpreted for-
+the interpretation of the returned lines by the server. The interpreted for-
mat is the same as in the *.gph files.
% cat test.dcgi
t@@ -92,6 +92,12 @@ menu item.
S: 1Some link /somewhere gopher.r-36.net 70
+For outputting large texts and having minor hassles with the content, prepend
+»t« to every line beginning with »t« or all lines:
+
+ % cat filereader.dcgi
+ #!/bin/sh
+ cat bigfile.txt | sed 's,^t,&&,'
Have fun!