• MakeNL on Linux

    From Warpslide@21:3/110 to All on Tuesday, September 07, 2021 12:00:25
    Hi All,

    I've just started playing around with makenl. I downloaded v3.5.0 from sourceforge (https://sourceforge.net/projects/makenl/files/makenl) and
    compiled it on the Pi.

    However it doesn't seem to allow -Unpublished- as a phone number:

    MakeNL 3.5.0 (Linux) compiled with GNU C on Aug 16 2021 18:49:33
    No directory for output file specified -- using '/tmp/master'
    Cmdline: makenl "node.ctl"
    Using 'node.ctl' in '/home/pi'
    Begin processing 'node.664' -- 11:49, Tuesday, September 7, 2021 ,664,Northern_Realms,Binbrook_ON,Jay_Harris,-Unpublished-,300,CM,INA:bbs.nrbbs. net,IBN
    node.ctl -- Invalid phone number -- '-Unpublished-'
    Fatal error(s) caused file 'node.ctl' to be rejected
    Fatal error in node.ctl
    MakeNL finished (rc=255)

    If I change -Unpublished- to just 0 or a bunch of random numbers, it appears
    to run ok and compiles the node, which can then be ingested by net-l.ctl and so on. Is there a setting I need to change to allow the use of -Unpublished-?


    Jay

    ... Think like a man of action, act like a man of thought.

    --- Mystic BBS v1.12 A47 2021/08/29 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Atreyu@21:1/176 to Warpslide on Tuesday, September 07, 2021 12:36:00
    On 07 Sep 21 12:00:25, Warpslide said the following to All:

    However it doesn't seem to allow -Unpublished- as a phone number:

    Try adding "Allowunpub 1" to the config.

    Atreyu

    --- Renegade vY2Ka2
    * Origin: Joey, do you like movies about gladiators? (21:1/176)
  • From Warpslide@21:3/110 to Atreyu on Tuesday, September 07, 2021 13:31:00
    On 07 Sep 2021, Atreyu said the following...

    However it doesn't seem to allow -Unpublished- as a phone number:

    Try adding "Allowunpub 1" to the config.

    Yup, that did it! Thanks so much!

    I'll play around with it more when I get home later. It seemed complicated, but it's really not so bad.


    Jay

    ... Diets are for those who are thick and tired of it.

    --- Mystic BBS v1.12 A47 2021/08/29 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From acn@21:3/127.1 to Warpslide on Wednesday, September 08, 2021 18:23:00
    Am 07.09.21 schrieb Warpslide@21:3/110 in FSX_BBS:

    Hallo Warpslide,

    I've just started playing around with makenl. I downloaded v3.5.0
    from sourceforge (https://sourceforge.net/projects/makenl/files/
    makenl) and compiled it on the Pi.

    Just fyi and if it might help someone, here is the configuration that
    I'm using to create the nodelist for WeedNet:

    ------< makenl.ctl >----------
    logfile weednet.log
    master ./master
    name WeedNet
    make composite
    outfile WEEDNET.
    outpath ./output
    allowunpub 1
    alphaphone 1
    arccopy Z zip -j9o
    arcmove Z zip -j9mo

    files
    zone 420 zone420.txt
    ------< /makenl.ctl >----------

    In the directory 'master', I have prolog.txt, epilog.txt, cpyright.txt
    and zone420.txt.
    zone420.txt contains the real nodelist entries.

    Now, just by issueing 'makenl', the nodelist will be created in the
    'output' directory.

    I've created a shell script around all this which runs makenl, creates
    the .zip files, adds it to the Synchronet filebase and hatches it to
    the fileecho.
    This script is run via a cronjob every friday in the morning.

    If of interest, I can post this script.

    My setup is pretty small and as it is not a segment of FidoNet etc.
    but a single othernet, I don't have to send or receive messages etc.

    Regards,
    Anna

    --- OpenXP 5.0.50
    * Origin: Imzadi Box Point (21:3/127.1)
  • From Warpslide@21:3/110 to acn on Wednesday, September 08, 2021 13:37:17
    On 08 Sep 2021, acn said the following...

    Just fyi and if it might help someone, here is the configuration that I'm using to create the nodelist for WeedNet:

    This is awesome, thanks so much Anna.

    arccopy Z zip -j9o
    arcmove Z zip -j9mo

    Would it be these lines that create the .Z## file that's distributed?

    I've created a shell script around all this which runs makenl, creates the .zip files, adds it to the Synchronet filebase and hatches it to
    the fileecho.

    Or this is where the .Z## is made?

    This script is run via a cronjob every friday in the morning.
    If of interest, I can post this script.

    I wouldn't mind having a gander, please & thanks.


    Jay

    ... A bachelor never makes the same mistake once.

    --- Mystic BBS v1.12 A47 2021/09/07 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Avon@21:1/101 to Atreyu on Friday, September 10, 2021 19:41:08
    On 07 Sep 2021 at 12:36p, Atreyu pondered and said...

    Try adding "Allowunpub 1" to the config.

    Hi Nick, could you guide me as to the best way to generate daily nodelists using MakeNL?

    At present I have a weekly one set up and NETs send in their segments but I
    was pondering a daily option too for the hell of it.

    Any tips appreciated. I was wondering if I needed to set up multiple
    instances one for each day or?

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From acn@21:3/127.1 to Warpslide on Saturday, September 11, 2021 09:57:00
    Am 08.09.21 schrieb Warpslide@21:3/110 in FSX_BBS:

    Hallo Warpslide,

    This is awesome, thanks so much Anna.

    No problem! :)

    arccopy Z zip -j9o
    arcmove Z zip -j9mo

    Would it be these lines that create the .Z## file that's distributed?

    Normally, yes.
    I have this comment in my makenl.ctl:

    ; always compress (0), don't create diff:
    ;threshold 0 -1

    I have to re-read the documentation, but I guess enabling the
    threshold line would normally create the .Z## files via makenl.

    But I've put this part into my script.

    I've created a shell script around all this which runs makenl, creates ac>> the .zip files, adds it to the Synchronet filebase and hatches it to
    the fileecho.

    Or this is where the .Z## is made?

    In my case, yes. I don't remember at the moment why I've used this
    way, but there has been a reason :)

    This script is run via a cronjob every friday in the morning.
    If of interest, I can post this script.

    I wouldn't mind having a gander, please & thanks.

    My script looks like this:

    -------------< process.sh >--------------
    #!/bin/bash

    # first: run makenl to create new nodelist
    if ! makenl; then
    echo "MakeNL error!"
    exit 1
    fi

    # get latest nodelist file and create ZIP filename

    nlfile=$(ls ./output/WEEDNET.[0-9]* -rt|tail -1)
    nlfile=$(basename $nlfile)
    zipname=${nlfile/\.[0-9]/.Z}
    day=${nlfile##*.}
    year=$(date +%Y)

    # create ZIP file:
    # -j: ignore directories
    # -9: max compression
    # -o: zip filedate = latest filedate in archive

    zip -j9o ./output/${zipname} ./output/${nlfile}

    # copy to SBBS filebase, add it fo filebase and hatch it:
    cp ./output/${zipname} /sbbs/files/weednet/nodelist

    SBBSCTRL=/sbbs/ctrl
    /sbbs/exec/addfiles weednet_nodelist ${zipname} "WeedNet nodelist for
    day ${day}/${year}"
    /sbbs/exec/jsexec /sbbs/exec/hatchit-acn.js -dir=WEEDNET_NODELIST - file=${zipname} -area=WEEDNET-NODELIST -origin=420:2/1

    # copy the nodelist to SBBS nodelist directory:
    cp ./output/${nlfile} /sbbs/data/nodelist/weednet.nl
    -------------< process.sh >--------------

    The most complicated part of the script is the filename creation part
    where I've used some bash string mangling functions :)

    Regards,
    Anna

    --- OpenXP 5.0.50
    * Origin: Imzadi Box Point (21:3/127.1)