↧
Answer by Telemachus for OS X cron and environment variables
The cron utility runs under a very limited environment. This means that you have to spell things out in a way you would not if you were working interactively at the command line (e.g., /usr/bin/perl...
View ArticleAnswer by robcast for OS X cron and environment variables
I haven't checked in detail but the bash manpage explains (search for INVOCATION) that bash doesn't read /etc/profile when it's not invoked as a login or interactive shell. The login program always...
View ArticleAnswer by Greg Hewgill for OS X cron and environment variables
In the crontab file, you can specify environment variables:FOO=bar0 * * * * echo $FOOThe above should echo "bar" every hour.
View ArticleOS X cron and environment variables
I'm currently setting a number of environment variables in OS X in /etc/profile using the export command. These are all listed correctly when I check in terminal, however when a script is executed...
View Article