• tic handler for DAILYLIST

    From mark lewis@1:3634/12.73 to all on Thu Oct 11 09:58:40 2018

    in my tickit.ini, i have this...

    [DAILYLIST]
    Dir=FDIST-DAILYLIS
    Links=1:261/38
    Handler=tickit/nodelist_handler.js
    HandlerArg={"domain":"fidonet", "match":"Z1DAILY.Z*", "nlmatch":"Z1DAILY.*"}

    i've read the wiki page on TickIT and the above handlerarg looks proper but something isn't right and i don't understand the code well enough to figure out
    the problem... what is the problem? the file that is copied is copied into the destination direcotry as "Z1DAILY.*" instead of its name as inside the archive...

    i started by manually copying Z1DAILY.273 into my sbbs/fido/nodelist directory... then i set TickIT up and let it run when tic files come in... after a day or two, i looked in the nodelist directory and hoped to see that Z1DAILY.273 was not in there and that a newer nodelist file was... i was quite surprised to see the following...

    /sbbs/fido/nodelist$ ls -l
    total 344
    -rw------- 1 sbbs sbbs 173960 Oct 11 01:00 'Z1DAILY.*'
    -rw------- 1 sbbs sbbs 173784 Sep 30 08:34 Z1DAILY.273

    especially when the temp directory contains the proper file name...

    /sbbs/temp/event/nodelist_handler$ ls -l
    total 172
    -rw------- 1 sbbs sbbs 173960 Oct 11 00:35 Z1DAILY.284

    the Z1DAILY.* file name is updated each day when it arrives... exec/load/tickit/nodelist_handler.js is the default that comes with sync...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Number of phone rings=number of steps from commode - 1!
    ---
    * Origin: (1:3634/12.73)
  • From echicken@1:103/705 to mark lewis on Thu Oct 11 11:23:45 2018
    Re: tic handler for DAILYLIST
    By: mark lewis to all on Thu Oct 11 2018 09:58:40

    -rw------- 1 sbbs sbbs 173960 Oct 11 01:00 'Z1DAILY.*'
    -rw------- 1 sbbs sbbs 173784 Sep 30 08:34 Z1DAILY.273

    What do you have in echocfg for Domains -> fidonet -> NodeList? The path & filename specified there is what nodelist_handler ultimately tries to copy the new file to.

    Your stuff from tickit.ini looks fine and very similar to mine. On my system, in echocfg, Domains -> fidonet -> NodeList points to ../fido/nodelists/fidonet.
    My nodelist is correctly updated whenever a new one comes in. (I'm also using Z1DAILY.)

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to echicken on Fri Oct 12 10:22:35 2018
    echicken wrote:
    Re: tic handler for DAILYLIST
    By: mark lewis to all on Thu Oct 11 2018 09:58:40

    -rw------- 1 sbbs sbbs 173960 Oct 11 01:00 'Z1DAILY.*'
    -rw------- 1 sbbs sbbs 173784 Sep 30 08:34 Z1DAILY.273

    What do you have in echocfg for Domains -> fidonet -> NodeList? The path & filename specified there is what nodelist_handler ultimately tries to copy
    the
    new file to.

    Your stuff from tickit.ini looks fine and very similar to mine. On my
    system,
    in echocfg, Domains -> fidonet -> NodeList points to
    ../fido/nodelists/fidonet.
    My nodelist is correctly updated whenever a new one comes in. (I'm also
    using
    Z1DAILY.)

    To illistrate what echicken is saying, my domains setting for fidonet looks like this:

    [Domain - fidonet]
    1: Name fidonet
    2: Zones 1,2,3,4,5,6
    3: DNS Suffix
    4: Outbound Root /sbbs/fido/outbound
    5: NodeList /sbbs/nodelist/nodelist.na

    Once it finds a match it'll use the NodeList entry as the destination
    filename. Your tickit.ini entry looks the same as mine so fixing this should resolve your issue.

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to echicken on Fri Oct 12 16:26:38 2018

    On 2018 Oct 11 11:23:44, you wrote to me:

    -rw------- 1 sbbs sbbs 173960 Oct 11 01:00 'Z1DAILY.*'
    -rw------- 1 sbbs sbbs 173784 Sep 30 08:34 Z1DAILY.273

    What do you have in echocfg for Domains -> fidonet -> NodeList? The
    path & filename specified there is what nodelist_handler ultimately
    tries to copy the new file to.

    OOOHHHH... that wasn't clear... i have Z1DAILY.* in there because i thought it was a filemask to look for...

    if i put ../fido/nodelist/nodelist will it copy the Z1DAILY.### file to nodelist.###?? in other words, will it keep the file's existing extension? subtly, will it also do the rename and keep the extension?

    Your stuff from tickit.ini looks fine and very similar to mine. On my system, in echocfg, Domains -> fidonet -> NodeList points to ../fido/nodelists/fidonet. My nodelist is correctly updated whenever a
    new one comes in. (I'm also using Z1DAILY.)

    what does "ls -l ../fido/nodelists" show, please...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Dishes where the raisins have little legs give me the willies!
    ---
    * Origin: (1:3634/12.73)
  • From echicken@1:103/705 to mark lewis on Fri Oct 12 18:12:45 2018
    Re: tic handler for DAILYLIST
    By: mark lewis to echicken on Fri Oct 12 2018 16:26:38

    if i put ../fido/nodelist/nodelist will it copy the Z1DAILY.### file to nodelist.###?? in other words, will it keep the file's existing extension? subtly, will it also do the rename and keep the extension?

    The matching file (Z1DAILY.###) would replace ../fido/nodelist/nodelist. (The idea being that ../fido/nodelist/nodelist is always an up-to-date copy.)

    what does "ls -l ../fido/nodelists" show, please...

    -rw-rw-r-- 1 bbs bbs 173667 Oct 12 01:17 fidonet
    -rw-rw-r-- 1 bbs bbs 24731 Oct 11 09:18 fsxnet

    And in my tickit.ini:

    [DAILYLIST]
    Dir=FIDO_DAILYLST
    Handler=tickit/nodelist_handler.js HandlerArg={"domain":"fidonet","match":"Z1DAILY.Z*","nlmatch":"Z1DAILY.*"}

    [FSX_NODE]
    Dir=FSXNET_FSX_NODE
    Handler=tickit/nodelist_handler.js HandlerArg={"domain":"fsxnet","match":"FSXNET.Z*","nlmatch":"FSXNET.*"}

    And relevant keys from sbbsecho.ini:

    [domain:fidonet]
    NodeList = ../fido/nodelists/fidonet

    [domain:fsxnet]
    NodeList = ../fido/nodelists/fsxnet

    The HandlerArg given to nodelist_handler.js tells the script:

    - match: If TickIT is importing a file that matches this
    - nlmatch: If the archive contains a file matching this
    - domain: look up this domain in sbbsecho.ini

    The script copies the first file matched by 'nlmatch' to the nodelist path for 'domain'.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to echicken on Thu Oct 18 13:24:36 2018

    On 2018 Oct 12 18:12:44, you wrote to me:

    And relevant keys from sbbsecho.ini:

    [domain:fidonet]
    NodeList = ../fido/nodelists/fidonet

    that was my confusion... i thought it wanted a directory/filemask so i had the ".*" in there to match only those file names... i thought it was intelligent enough to hunt down the latest one but this KIS approach is better now that i know about it...

    thanks for the assist :)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... On anniversaries, forget the past but never the present.
    ---
    * Origin: (1:3634/12.73)