Next / Previous / Index / ITC 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.

As with CGI scripts, the program or script you execute runs with the privileges of its owner. Therefore, if the script is owned by you, it can read or write any files that you have access to.


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 Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman, john@nmt.edu
Last updated: 2009/01/16 20:03:05 UT
URL: http://www.nmt.edu/tcc/help/html/ssi_exec.html
QR two-dimensional bar code