1
2
3
4
5
6
7
8
$ cat ~/.env
export FOO=bar

$ crontab -l
* * * * * /bin/bash -c "source ~/.env && echo ${FOO} > /var/tmp/foo.txt"

$ cat /var/tmp/foo.txt
bar