> #!/bin/sh > exec env -i $(cat /path/to/xyz.env) /path/to/xyz And of course you should be careful with the contents in `xyz.env'.
On Mon, Oct 23, 2017 at 01:30:57PM -0700, Monty Zukowski wrote: > I've been learning about s6 through the s6-overlay. What I would like > to do is take a .env file full of x=y lines and have that define env > vars before running a program. I suspect there is a clever and easy > way to do that. However, I'm not so clever. The best I've found so > far is the s6-envdir program. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C