Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

putenv string string

putenv is NOT undoable, NOT queryable, and NOT editable.

The first argument is the name of an environment variable and the second argument is the value to be assigned to it. If the environment variable does not exist it is created. Note that commands exec'd via the "system" command will inherit the environment variables set via "putenv".

Return value

intError code

Related

env, getenv

MEL examples

putenv "MYHOME"  `getenv "HOME"`;
// Result: 0 //
$s=`getenv "MYHOME"`;
// Result: /u/userName //