The following functions and statements do not fit in any category.
SYSTEM(c)
This statement executes the UNIX command given by its single
argument c. See example 54.
GETENV(s)
This function returns the environment variable
of name s. The result and the argument are strings but the value FALSE
is returned when the environment variable does not exist.
Example 54: Start a compilation process in the directory specified by the
environment variable WORK_DIR.
IF (GETENV("TSFWORK")) THEN
SYSTEM("cd "+GETENV("WORK_DIR")+" ; make")
ENDIF