Using Server-Side HTML Commands
Chapter 3 Server-Parsed HTML Tags 117
exec
The exec command runs a shellcommand or CGI program.
•The
cmd attribute (UNIX only) runs a command using /bin/sh.Youmay
include any special environment variables in the command.
•The
cgi attribute runs aCGI program and includes its output in the parsed file.
Example:
<!--#exec cgi="workit.pl"-->
Environment Variables in Server-Side HTML
Commands
In addition to the normal set of environment variables used in CGI, you may
include the following variables in your parsed commands:
•
DOCUMENT_NAME
is the file name of the parsed file.
•
DOCUMENT_URI
is the virtual path to the parsed file (for example, /shtml/test.shtml).
•
QUERY_STRING_UNESCAPED
is the unescaped version of any search query the client sent with all
shell-special characters escaped with the \ character.
•
DATE_LOCAL
is the current date and local time.
•
DATE_GMT
is the current date and time expressed in Greenwich Mean Time.
•
LAST_MODIFIED
is the date the file was last modified.
Kommentare zu diesen Handbüchern