HTML Server Side Includes: exec |
|
The ``Server Side Includes'' feature allows you to customize your page by executing a program or script. All the output from that program or script will be displayed on the page.
Here is the general form of the SSI #exec command:
<!--#exec cmd="command [arguments...]"-->
where:
| command | is the pathname of the program or script you want to execute. |
| arguments | are optional arguments passed to the program or script, as if they were command line arguments. |
For example, this line:
<!--#exec cmd="/u/fred/www/run -x green"-->
would execute the script /u/fred/www/run and pass it
two arguments, "-x" and "green". Any output
generated by that script would appear on your Web page at the
position of your <!--#exec...--> tag.
Warning. As with CGI scripts, the program or script you execute runs as if it were run by user ``nobody'' and therefore does not have the same privileges it would have if you ran it. It cannot, for example, write files in your directory unless those files have the world write permission (see `Controlling access to your files' for more information on permissions).
If your script needs to write a file, see the page on SSI permission problems.