Example of a Table of Acceptable Commands

# List of rules for commands that can be executed via qcmd for WWW.
# the format of this file is
#    abbrev-command args = full-command [; security rule] [#comment]
#    [#comment]
# If args = * then any arguments are accepted, otherwise a full match is
# required. The arguments are verified in qcmd to ensure they only include
# valid characters and there are not too many arguments.
# If the abbrev-command contains a * (wild card) then
# the full-command may contain a wild card in which case this indicates
# the location where the args are to be placed.
# The only security rules implemented at the moment are:
#   SLAC which means the
#   command is only valid from clients in the SLAC subnet 134.79. and
#   WILD which means the command will handle wild cards (asterisks)
#   % which means the script is prepared to handle % encoded characters
#   HEAD which means the script needs wrap to put out <title> header
#      and <pre> tags.
#   TRANS which means that the wrapper should be as transparent as possible
#      and not insert the "Content-type: type/subtype" header or the <title>,
#      header and <Pre> tags.
#   TEST which means the command must execute under the test WWW server.
qman *                           = /usr/ucb/man *; HEAD
qhostis *                        = /usr/local/bin/node -whereis *; HEAD SLAC
qprint *                         = lpq -P*; HEAD
qtrace *                         = /u/sf/cottrell/bin/traceroute.pl *; TRANS

[ CGI overview | SLAC Home Page | Feedback ]
Les Cottrell