Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ General Discussion _ Setting The Shell In Cron

Posted by: jacknife Nov 24 2005, 11:19 AM

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?


Posted by: Jim Nov 25 2005, 02:17 AM

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.

Powered by Invision Power Board (
© Invision Power Services (