envjector icon indicating copy to clipboard operation
envjector copied to clipboard

Exec a subprocess with an environment specified in a file. Like env, but a single static binary across multiple operating systems.

Envjector

A small, single static binary for populating an environment from a file and executing a child process with that environment.

Usage

$ envjector -file /path/to/envfile -- myapp

FAQ

How is this different than env(1)?
In functionality, its quite similar. env(1) probably has more functionality related to changing directories and signal handling. Unlike env(1), envjector is a single static binary with builds for Linux, Darwin, and Windows. Envjector accepts an environment file, and uses execve(2) to call the process instead of monitoring it as a child.