Am 19.07.22 schrieb Bucko@80:774/70 in RTN_ADM:
Hallo Bucko,
Carlos (Necromaster) has been having health problems for quite a
while. Spitfire who wants to take over both this network and
CommodoreNet can't figure out Makenl so he can update the nodelist
and get this network and the other one running again. If anyone out
there wants to help him learn it so he can take over the net I am
sure he would be happy to listen. As would I.. Never to old to
learn new software..
I'm using makenl for WeedNet (Zone 420 *g*) using the following configuration.
For my setup, I don't use any incoming/outgoing mails and I also only
have one data file for the zone.
Makenl is called by a cronjob every friday, the script for this is
also below:
---- <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
; always compress (0), don't create diff:
;threshold 0 -1
;submit 420:2/1
;netaddress 420:2/1
;messages ./netmail
files
zone 420 zone420.txt
---- </makenl.ctl> ----
In the "master" directory, I have the following files:
- cpyright.txt
- prolog.txt
- epilog.txt
These files are attached to the start/end of the nodelist.
And then, there is zone420.txt, which contains the nodelist data.
The cronjob calls the following script each friday:
---- <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/jsexec -n /sbbs/exec/postfile.js weednet_nodelist \
${zipname} "WeedNet nodelist for day ${day}/${year}" Sysop
/sbbs/exec/jsexec -n /sbbs/mods/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> ----
I'm not using makenl's compression method but use zip in the script
myself.
I hope that his might help someone :)
Regards,
Anna
--- OpenXP 5.0.56
* Origin: Imzadi Box Point (80:774/113.1)