Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

HTML Server Side Includes: exec

Tech Computer Center logo

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.


Next: HTML Server Side Includes: Permission problems
See also: Using HTML Server Side Includes (SSI)
Previous: HTML Server Side Includes: include
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 2000/07/28 23:18:57 UT
URL: http://www.nmt.edu/tcc/help/html/ssi_exec.html