system

Invokes a system call.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

int system(command[,wait])
string     command
expr       wait

Description

Invokes an operating system command using the C-library call system(). The return value is operating-system dependent. See the reference manual for your operating system.
command specifies the operating system command to invoke.

wait (optional) specifies a pause. If true, the function displays a prompt before returning to the application.

Example

In a Unix environment, searches all files in the temporary directory for the user ID of the person running the report.
system("fgrep " ^^ cuserid() ^^ " /tmp/*",wait);