(Contents)(Previous)(Next)

Calling Operating System Commands

UNIX shell commands and executable programs can be called using the command "exec command ..." (see Section Calling Operating System Commands).

Examples:

EXEC COMMAND 'ls -l' END-EXEC displays the current directory

EXEC COMMAND 'lp out' END-EXEC prints the file 'out'

EXEC COMMAND 'pgm1>pgm1.lis' END-EXEC starts the program 'pgm1' writing the results to the file 'pgm1.lis'.


(Contents)(Previous)(Next)