akfquery(1) General Commands Manual akfquery(1) NAME akfquery - use form data via CGI in shell scripts SYNOPSIS akfquery field_name [alternative] DESCRIPTION With the program akfquery you can use forms with the GET-method in shell scripts. A field_name must be provided. The program outputs the decoded field value to the standard output. If the field doesn't exist or if it is empty, then it outputs the alternative, if given. Otherwise the output is empty. If the field has multiple values, the program outputs multiple lines. This can happen for example with checkboxes. Special HTML-characters (<>&"') are converted to HTML-enities. Warning Shell scripts are suitable for quick temporary solutions or drafts in local, private networks. But they shouldn't be used for productive work on the open Internet. ENVIRONMENT QUERY_STRING contains the form data with the method GET EXAMPLES # save in variable for reuse name=$(akfquery name "unknown") echo "

Hello $name.

" # for single use output you can directly include it # the line breaks don't really matter for HTML echo "

age:" akfquery age echo "

" # hobby is done with checkboxes echo "" AUTHORS Copyright © 2018 Andreas K. Förster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER‐ CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . SEE ALSO akfwebserver(1) https://akfoerster.de/p/akfnetz/ akfnetz 2024-09-22 akfquery(1) .