cronでも環境変数使う 2019-07-14 Linux 12345678$ cat ~/.envexport FOO=bar$ crontab -l* * * * * /bin/bash -c "source ~/.env && echo ${FOO} > /var/tmp/foo.txt"$ cat /var/tmp/foo.txtbar