On 2004-04-24 00:16:17 -0600, Bruce Shaw wrote:
> If I run it as a crontab entry, it won't work because there's no environment
> variables.
> 
> I've even tried something like:
> 
> 12 23 * * * cd /usr/local/bin/mine; ./setup_vars; set > set.txt;
> ./myscript.pl & > diag.txt
> 
> where setup_vars is a script that's supposed to set my variables.  I've also
> got them set in .profile, but when I examine set.txt, none of the
> environment variables are there and diag.txt shows that nothing has worked
> because the variables are missing.
> 
> What am I doing wrong?

You are posting to the wrong list. This has nothing to do with DBI or
even perl, but with shell programming. You need to source
./setup_vars, not execute it: 
    . ./setup_vars

        hp

-- 
   _  | Peter J. Holzer      | Shooting the users in the foot is bad. 
|_|_) | Sysadmin WSR / LUGA  | Giving them a gun isn't.
| |   | [EMAIL PROTECTED]        |      -- Gordon Schumacher,
__/   | http://www.hjp.at/   |     mozilla bug #84128

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to