XRPi Home

Documentation Index
Alphabetic Index

XRPi Documentation - System Files

EXEC.HTM

Name

EXEC.HTM -- Command Template for HTTP Server.

Description

This optional file is a "template" for use with the HTTP server.

When the server receives a request whose URL begins with "/exec?cmd=", it passes the command to XRPi for execution, and serves a "template" page displaying the response to the command. The template serves as a wrapper for the text.

If you wish to override XRPi's inbuilt HTML template, edit the file EXEC.HTM, which was supplied with the installation package, and put it in the XRPi working directory. This file is not placed within the HTTP directory tree because it is not intended to be served in the normal way.

If EXEC.HTM exists, the server will serve it in place of the inbuilt template, replacing the <TEXT> tag with the result of the executed command. EXEC.HTM does not currently support Server Side Includes.

See also

HTTP-SRV(9) -- HTTP Server.