Finally I could make binkd find a nodelist however everytime it
processed the newest nodelist from the directory. From what I've seen
it doesn't take into account which network is prefixed in perl-vars.
To fix it dirty I simple did a cat for every network nodelist and
sent it to "thenodelist" and in binkd.conf I've got just one line.
# Perl hooks file (if built with Perl)
#
perl-hooks /var/spool/ftn/filebase/nodelist/nodelist.pl
perl-var nodelist fidonet:/var/spool/ftn/filebase/nodelist/thenodelist perl-var magichost *
Hey Javier!
I have never worked with any of this (perl with binkd), but I would imagine "nodelist" is the name of the nodelist as defined in the
sample binkd.conf as '$cfg{"name"}', and 'Syntax: perl-var <name> <value>'.
perl-var fsxnet
/var/spool/ftn/filebase/nodelist/FSXNET.[0-9][0-9][0-9] perl-var
fidonet
/var/spool/ftn/filebase/nodelist/nodelist.[0-9][0-9][0-9] perl-var
nixnet /var/spool/ftn/filebase/nodelist/NIXLIST.[0-9][0-9][0-9]
Also, I have no idea what a "magichost" would be, so you may want to comment that line out while testing this, as that would seem to pool everything together (which may be why you're getting addresses with
the wrong domains).
Regards,
Nick
... Sarcasm: because beating people up is illegal.
--- SBBSecho 3.32-Linux
* Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
(1:154/700)
I have never worked with any of this (perl with binkd), but I would
imagine "nodelist" is the name of the nodelist as defined in the
sample binkd.conf as '$cfg{"name"}', and 'Syntax: perl-var <name>
<value>'.
You need to specify the variable name because in the perl script it's
used.
my ($curnodelist, %nodelist, $glob);
sub nodelist { return ($config{"nodelist"} =~ /:/ ? $' : ""); }
sub domain { return ($config{"nodelist"} =~ /:/ ? $` : ""); }
sub magichost { return ($config{"magichost"} || "*"); }
I followed some suggestions from Tomi.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 50 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 75:33:10 |
| Calls: | 698 |
| Files: | 1,198 |
| D/L today: |
40 files (24,428K bytes) |
| Messages: | 168,128 |