Servertec #exec
Documentation
Conventions
Command Line
Administrator
Localization
Programming
Security
Performance
Deployment
Server API
Servlet / JSP API
Xerces API
CGI
SSI
#config
#echo
#exec
#flastmod
#fsize
#include

Servlets
Config Files
Log Files
Classes
Directory Tree

Return

 

Used to insert the output of an executable program.

Syntax

<!-- #exec type = "command" -->

Parameters

type
CGI Execute a Command Gateway Interface (CGI) command.

The command is a URL encoded virtual path to the executable.

    Spaces are replaced by +.
    Parameters appear after the command, after a ?.
    Parameters are separated by &.
    Parameters use the following syntax: parameter=value
CMD Runs an executable or shell script.

The command is a physical path to the executable or shell script.

command The command to execute.

Notes

SSIncludeServlet uses exec parameter to specify the shell command to use and bindir to specify the base path where CGI executables are physically located.

Before #exec directive can be used Shell Access must be enabled in the Servertec Internet Server Administration - Server form.

Examples

<!-- #exec CMD = "c:\windows\command.com /c dir" -->
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:41 EDT 2005