| Format: <shell> heitml </shell> |
Purpose: The shell Tag allows you send a command to the Operating System, the results of which are displayed in the Browser page.
Anything you type between the opening and closing shell tags is processed in HTML mode where the resulting string output is not sent to the browser, as usual, but to the Web server's Operating System.
Configuration:
The shell tag uses the directory specified by the configuration option
shelltemp to write a temporary file in which the output of the shell command is redirected.
The shell tag is not allowed in secure mode.
Here's an example that would produce a directory listing within the Web Page. (Remember to use the HTML <pre> and </pre> Tags around the outside for proper formatting.)
Example:
| On UNIX Systems | On Windows 98 | On Windows NT |
|---|---|---|
| <shell> ls -l </shell> |
<shell> command.com /C dir </shell> |
<shell> cmd /C dir </shell> |
Tip: To get a directory listing within a Web Page, you can also use the directory() function.
| Caution! Due to restrictions in on , the shell tag does not function correctly on this platform. |
| Note: The shell Tag is Case Sensitive, which means heitml will not recognize it if you use capital letters (e.g. <SHELL>). |