Quantcast
Channel: OS X cron and environment variables - Server Fault
Viewing all articles
Browse latest Browse all 4

OS X cron and environment variables

$
0
0

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 through cron none of these variables are set.

As I understand it cron runs with its own environment variables, but how can I get my custom ones into the cron environment as well?

Please explain in the simplest possible way, as you may have guessed, this isn't something I know a lot about.

Thanks, Jack


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images