> -----Original Message-----
> From: me [SMTP:me@???]
> Sent: Tuesday, November 24, 1998 9:50 AM
> To: exim-users@???
> Subject: Re: [EXIM] dbm alias file
>
> Well thats what I was kinda thinking, when I use exim_dbmbuild it
> creates a .db file, this I try to open (succesfully) using perl and
> dbmopen, however no matter what I try it refuses to display the contents
> let alone modify them.
>
> The problem is that if my aliases file gets to large, then it will take
> some time to rebuild it, and I'd like to get the changes "live" asap
> (within reason), also I think its a neater solution.
>
> Maybe a quick posting to a perl newsgroup......
>
> Thanks Iqbal
>
It may be the version of Perl you're using. I used the following
code on one system and it worked fine. However, when I tried using it on
another system it didn't. At first I thought it might have been due to
different versions of Exim or C Compiler used to build Exim. I eventually
noticed that the system which it worked on had Perl 5.003 whereas the other
had Perl 5.001
#!/usr/local/bin/perl
$dbcode=dbmopen(%DB,'aliases',0644);
printf("DB Open code= %d\n",$dbcode);
while ($key,$val) = each %DB){
printf("%s %s\n",$key,$val);
}
Paul Walsh
Senior Systems Programmer, Information Services,
University of Central England, BIRMINGHAM B42 2SU
Tel: +44 (0)121-331-5708 Fax: +44 (0)121-356-2875
--
*** Exim information can be found at
http://www.exim.org/ ***