environment variables in perl scripts
From: Bruce Shaw (Bruce.Shaw_at_gov.ab.ca)
Date: 04/24/04
- Next message: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Previous message: Elliot Fielstein: "RE: an error during installation of perl DBI"
- Next in thread: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Reply: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Reply: Sumitro Chowdhury: "Re: environment variables in perl scripts"
- Reply: David N Murray: "Re: environment variables in perl scripts"
- Reply: Peter J. Holzer: "Re: environment variables in perl scripts"
- Maybe reply: Tony Adolph: "Re: environment variables in perl scripts"
- Maybe reply: Robert Doucette: "Re: environment variables in perl scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'dbi-users@perl.org'" <dbi-users@perl.org> Date: Sat, 24 Apr 2004 00:16:17 -0600
I've got a working dbi script but I can only get it going live.
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?
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 4/15/2004 This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed.
- Next message: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Previous message: Elliot Fielstein: "RE: an error during installation of perl DBI"
- Next in thread: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Reply: Jupiterhost.Net: "Re: environment variables in perl scripts"
- Reply: Sumitro Chowdhury: "Re: environment variables in perl scripts"
- Reply: David N Murray: "Re: environment variables in perl scripts"
- Reply: Peter J. Holzer: "Re: environment variables in perl scripts"
- Maybe reply: Tony Adolph: "Re: environment variables in perl scripts"
- Maybe reply: Robert Doucette: "Re: environment variables in perl scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]