Quantcast
Channel: OS X cron and environment variables - Server Fault
Browsing latest articles
Browse All 4 View Live

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 Article



Answer 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 Article

Answer 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 Article

OS 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
Browsing latest articles
Browse All 4 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>