bittondb has asked for the wisdom of the Perl Monks concerning the following question:
and the crontab isif(defined $ENV{DBUILDER_DIR}){ use lib "$ENV{DBUILDER_DIR}/lib"; } else { use lib "../lib"; }
Is this the proper way to go about this? Just so you are aware, I also have this in a subsequent module:* */6 * * * DBUILDER_DIR=/home/indy/source/dbuilder /home/indy/source/ +dbuilder/scripts/spamburglar.pl
So, am I on the right track? Oh, and I know TIMTOWTDI!if(defined $ENV{DBUILDER_DIR}){ $cfg->file("$ENV{DBUILDER_DIR}/etc/dbuilder.conf"); } else { $cfg->file("../etc/dbuilder.conf"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A relative cron questions
by atcroft (Abbot) on Dec 11, 2001 at 13:53 UTC | |
by belg4mit (Prior) on Dec 11, 2001 at 20:42 UTC | |
|
Re: A relative cron questions
by hakkr (Chaplain) on Dec 11, 2001 at 17:25 UTC | |
|
Re: A relative cron questions
by Fastolfe (Vicar) on Dec 12, 2001 at 02:10 UTC |