[Shell]Unix Shell Commands[/Shell]
To embed the results of a shell command into one of your pages, put a Shell context into a template. The shell commands contained inside the context is executed, and any returned value is displayed in place of the context. Any [xxx] tags inside the context are first substituted for their real values before the shell command is executed.
Example (normally you would put the following text into a .TPL file on your server and use a web browser to link to it):
<pre> [Shell]ls -l[/Shell] </pre>
In this example, the shell command "ls -l" is executed, and the results (a listing of all the files in the current directory) is displayed. The <pre> tags are used to format the results more nicely in an HTML page. The user priveleges are the same as the WebCatalog program itself (which is typically logged on as user nobody).