Skip to content
Manvendra Bhangui edited this page Dec 27, 2024 · 2 revisions

NAME

uenv - run a program with environment modified according to files in $HOME/.defaultqueue

SYNOPSIS

uenv [-c] child

DESCRIPTION

uenv sets various environment variables as specified by files in the directory $HOME/.defaultqueue and then runs child with the modified environment variables. Specifying -c option clears all existing environment variables except $HOME. It works exactly like envdir(8), except that it uses the fixed directory $HOME/.defaultqueue for setting new environment variables.

child consists of one or more arguments.

You can skip $HOME/.defaultqueue by setting SKIP_LOCAL_ENVIRONMENT environment variable. It then sets environment variable specified by files in /etc/indimail/control/defaultqueue. if QUEUE_BASE environment variable is set, setting of environment variables from /etc/indimail/control/defaultqueue is skipped.

EXAMPLES

Run uenv as root to display local environment variables set for the user user with home directory /home/user. The same output can be obtained by using 'qmail-showctl -E' command.

# setuidgid user env HOME=/home/user uenv -c env

Run uenv to display local environment variables for current user.

$ uenv env

SEE ALSO

envdir(8), qmail-showctl(8),

Clone this wiki locally