S6-DUMPENV(1)

NAME
s6-dumpenv - store environment variables into a directory

SYNOPSIS
s6-dumpenv [-N | -n] [-m mode] dir

DESCRIPTION
s6-dumpenv creates the directory dir if it does not exist yet.

For every environment variable ‘x’ with value ‘y’ that it has, it creates a file dir/x containing ‘y’.

It then exits 0.

A program prog can be run with the environment in dir by using s6-envdir(8):
    s6-envdir -fn -- dir prog

OPTIONS

-N  Chomp. Write the environment variables with an extra newline at the end, so the environment can be retrieved via ‘s6-envdir -Lf dir’.

-n  Write the environment variables as is; the environment will be retrieved via ‘s6-envdir -Lfn dir’. This is the default.

-m mode
    Create dir with mode mode if it doesn't exist yet. Default is 0755.

EXIT STATUS

111 Temporary error.

100 Permanent error, such as a misuse.

127 Unable to execute program - not found.

126 Unable to execute program - other reason.

SEE ALSO
s6-basename(1), s6-cat(1), s6-chmod(1), s6-chown(1), s6-clock(1), s6-cut(1), s6-dirname(1), s6-echo(1), s6-env(1), s6-expr(1), s6-false(1), s6-format-filter(1), s6-grep(1), s6-head(1), s6-hiercopy(1), s6-linkname(1), s6-ln(1), s6-ls(1), s6-maximumtime(1), s6-mkdir(1), s6-mkfifo(1), s6-nice(1), s6-nuke(1), s6-pause(1), s6-printenv(1), s6-quote(1), s6-quote-filter(1), s6-rename(1), s6-rmrf(1), s6-seq(1), s6-sleep(1), s6-sort(1), s6-sync(1), s6-tai64ndiff(1), s6-tail(1), s6-touch(1), s6-true(1), s6-uniquename(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-dumpenv.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)