Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Environment variables can be queried, not only in batch mode but also in interactive mode. This can be an alternative way to pass information to a macro.

From a command line, inspect the current environment variables with  env | sort  and choose one, for example HOST, which provides the name of the machine you are working on. In a macro, get the value of this variable a chosen environment variable (e.g. HOST) using the getenv() function. For example:

...