Skip to content

Instantly share code, notes, and snippets.

@rellfy
Created May 2, 2022 07:21
Show Gist options
  • Save rellfy/ecffcc0ae3670d41ea9d0f5f90963cd4 to your computer and use it in GitHub Desktop.
Save rellfy/ecffcc0ae3670d41ea9d0f5f90963cd4 to your computer and use it in GitHub Desktop.
Start program with environment variables from file
set -o allexport
source /root/.env
set +o allexport
/root/program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment