|
Normally each user has a .profile in their home directory.
This is the file that I think the CRON jobs do not load automatically.
I have in the past created a special version of this for CRON jobs as
I do not need any of the settings that are only for interactive
terminal environment.
So my shell scripts that I schedule look something like:
cd /home/username/cronjobs
. cron_profile
sas program.sas
On Jan 29, 9:35 am, alex4...@YAHOO.CO.IN (Alex S) wrote:
> Hi All,
> I am having a problem in scheduling my SAS job through crontab. My database=
> is Tereadata in Unix.=A0when i run it=A0manually=A0it works fine. if i sch=
> edule my SAS job it is not setting up the environment variables.
> for this reason ,my UNIX admin suggested to created SH file,This SH file sh=
> ould calls my public profile file and=A0add the crontab command inthe SH fi=
> le,the Content of SH file is:
> ---------------------------------------------------------------------------=
> ------------------. /etc/profilesas /mydirectory/myjob.sas-----------------=
> ---------------------------------------------------------------------------=
> -then i schedule my SH file like below30 10 * * * sh /mydirectory/myjob.sh
> The difference is SH files calls the public profile ". /etc/profile".how ca=
> n i call this ". /etc/profile" from my SAS code.
> Thanking you in advance.
> =A0Regards=20
> alex .S.=0A=0A=0A Your Mail works best with the New Yahoo Optimized IE=
> 8. Get it NOW!http://downloads.yahoo.com/in/internetexplorer/
|