getenv


getenv(var, @optional default)
      

Return the value of the environment variable var of the current process. If no such environment variable is found and default is provided, return default, otherwise raise an "Unbound OS environment variable" error.

Examples:


getenv("logs_folder", "./")
// ./
setenv("logs_folder", "/logs/")
getenv("logs_folder", "./")
// /logs/
setenv("logs_folder")
getenv("logs_folder", "./")
// ./
      

Also see:

command_line
shell_command


Core Module Index | Contents