next up previous contents index
Next: Builtin functions Up: Various attributes and functions Previous: Using vectors and hash

Various functions

The following functions and statements do not fit in any category.

  $\blacktriangleright$ SYSTEM(c)
 
This   statement executes the UNIX command given by its single argument c. See example 54.
  $\blacktriangleright$ 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.

$\vartriangleright$ 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



Yann Mevel
1999-04-30