system

Issues a command to the operating system.

Syntax

system(str_expr)

Input

str_expr
A system command.

Example

{system("ls -la > temp")} ' create a directory listing
' pipe it to the output file
{system("rm temp")} ' remove the directory listing

Comments

The system statement causes Templex to spawn a shell and execute str_expr as a shell command.

str_expr can be either literal text or a string variable. If str_expr is literal text, it must be placed between double quotes.