[Ilugc] difference between interactive and background cron script

Raja Subramanian rajasuperman at gmail.com
Thu Oct 9 17:45:49 IST 2008


On Thu, Oct 9, 2008 at 5:16 PM, Mohan Sundaram <mohan.tux at gmail.com> wrote:
> I've written a bash script to get my SSID and accordingly set my network
> preferences (on a Mac). The script works well in an interactive shell but
> fails to work similarly when invoked thro cron.

Ensure your PATH environment variable is set correctly.
cron by default use a minimal PATH.

- Raja


More information about the ilugc mailing list