I'm trying to move the configuration variables out of three perl scripts
and put them in a config file. Fine, no problem so far.
The way this works is an email message with a given subject is processed
by procmail then passed off to the first perl script. The first script
sets up the second. The second sets up the third script.
If at the command line I do './script1.pl < my_email_message.eml
everything works fine. The three scripts fire off as they should and do
their tasks.
However, if allowed to be processed as normal (started via an incoming
email message), then it does not work.
The root of the problem is I read the configuration file in script2.pl
thusly:
do './mcr.conf';
The only way I have found thus far to make this work via the 'normal
route' of an incoming email message is to change the above line to:
do '/absolute/path/to/mcr.conf';
Which defeats my purpose of getting the configuration items out of the
scripts themselves. I don't want the users to have to edit the three
scripts, only the mcr.conf file.
Is there a way around this?
Thanks,
Mike
--
Netnews is like yelling, "Anyone want to buy a used car?" in a crowded
theater.
00:15:01 up 4 days, 19:05, 8 users, load average: 1.10, 1.10, 1.09
Linux Registered User #241685 http://counter.li.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>