Add script for reading manpages

This commit is contained in:
g1n 2021-07-22 05:38:59 +00:00
parent 00c47e073b
commit 9b00f736de
1 changed files with 8 additions and 0 deletions

8
cgi-bin/man.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
if [ -z $QUERY_STRING ]; then
printf "10 Please enter name of man page\r\n"
fi
man_page=$QUERY_STRING
printf "20 text/gemini\r\n"
printf "%s\n" "$(man $man_page)"