Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Generic script for setting up correct cron environment?

Re: Generic script for setting up correct cron environment?

From: Edzard <edzard_at_volcanomail.com>
Date: 9 May 2002 11:28:37 -0700
Message-ID: <5d75e934.0205091028.5f417b68@posting.google.com>


I had a problem with the cron jobs too (on HP/UX 11i). This was not an Oracle issue though. It appears that the cron job does not go through the profiles like a regular interactive login. That leaves the environment almost uninitialised, especially PATH is not defined. So the job does not find oraenv, for instance.

One solution is to execute /etc/profile from within the script that you want to run from crontab (. /etc/profile).

Another way is to use the su command in the crontab file, e.g. su - oracle <programnama>. This must be in roots corntab. Received on Thu May 09 2002 - 13:28:37 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US