Help - Search - Members - Calendar
Full Version: Setting The Shell In Cron
Linuxhelp > In The Community > General Discussion
I'm trying to set up a cronjob that will use my bash_profile. I need to check new files out of CVS and then build them. All the environment variables are set in my bash_profile, but I can't get cron to load it up before starting the cronjob.

In the program I output a list of the environment variables and BASH is always set to /bin/sh instead of /bin/bash. I can change the actual SHELL setting, but it doesn't seem to work for BASH. Any ideas?

Are you running it as a script or are you just doing a collection of crontab entries? If you're doing it as a script it should be pretty easy to set the shell to bash. Post your script if you are doing it as a script, if not, write one, and post that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.