|
|
sybperl-l Archive
Up Prev Next
From: Louis Proyect <lnp3 at columbia dot edu>
Subject: RE: Perl thru crontab
Date: Feb 1 2000 3:23PM
At 10:10 AM 2/1/00 -0500, you wrote:
>cron job doesn't take environment variables that you set for your command
>shell environment.
>you can write a shell script to setup all necessary environment variables
>first, then call your Perl script.
>Instead of running Perl script directly from crontab, you run this shell
>script. this way you don't have to
>get your SA involved in set up default cron variables.
Like so:
#!/usr/bin/ksh
# setup proper path and printer and mail aliases
export
PATH=$PATH:/usr/local/ffe/extracts:/usr/local/ffe/bin:/usr/local/sybase/\
bin:.
export PRINTER=thr03l3
export SYBASE=/usr/local/sybase/
export DSCONSOLE=SYBASE@CUAIX07
export DSQUERY=SYBASE@CUAIX07
|