Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Setting The Shell In Cron, Sepcifying the shell to use for crontab
jacknife
post Nov 24 2005, 11:19 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 24-November 05
Member No.: 5,776



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?

Thanks.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Jim
post Nov 25 2005, 02:17 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



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.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post

Posts in this topic
- jacknife   Setting The Shell In Cron   Nov 24 2005, 11:19 AM
- - Jim   Are you running it as a script or are you just doi...   Nov 25 2005, 02:17 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 02:23 PM