1753501 Members
5048 Online
108794 Solutions
New Discussion

Re: Variables in crontab

 
George Spencer_4
Frequent Advisor

Re: Variables in crontab

Our database group have a number of scripts to set the environment variables for the desired database instance. We can then run these to set up the environment within crontabs; e.g.

43 11 * * * . /home/informix/env/env_xxxx; script_to_run

The dot before the first script name causes initial script to run in the crontab shell; this sets up all of the variables for the second script.