Hello All!
I am trying to track down an error from a downlink... How would I copy pkts before process? Is in the main-in script I use or ? I believe it
has to be when binkd receives and before hpt tosses?
Hello Rick!
19 Sep 24 09:51, you wrote to all:
Hello All!
I am trying to track down an error from a downlink... How would
I copy pkts before process? Is in the main-in script I use or ?
I believe it has to be when binkd receives and before hpt
tosses?
I got my binkd to copy anything that it receives before it gets
tossed. In the binkd config i added:
===
# Run an external program.
# The "!" before program pathname means immediate program execution
# after receiving the file.
# ***
# Macros: *F - complete name of received file,
# *H - remote hostname or IP,
#
exec "/path/to/archiver.sh *F *H" *
===
and the archiver.sh script is
===
#!/bin/bash
Y=`date '+%Y'`
W=`date '+%V'`
B=`basename $1`
L=/path/to/archive/$Y/$W
mkdir -p $L
cp -vf $1 $L/$2_$B
===
This gives me an archive folder per year and in there per week of the incoming packets prefixed with the hostname where they came from.
enjoy,
Floris
and the archiver.sh script is
===
#!/bin/bash
Y=`date '+%Y'`
W=`date '+%V'`
B=`basename $1`
L=/path/to/archive/$Y/$W
mkdir -p $L
cp -vf $1 $L/$2_$B
===
This worked well for my IPv4 nodes but not for the IPv6 ones. I made a modification that uses their first AKA instead:
In binkd.conf:
exec "!/path/to/archiver.sh *F *A0" *
===
#!/bin/bash
Y=`date '+%Y'`
W=`date '+%V'`
B=`basename $1`
L=/path/to/archive/$Y/$W
N=`echo $2 | tr ":/@." "----"`
mkdir -p $L
cp -vf $1 $L/$N\_$B
===
Sysop: | Saxainden |
---|---|
Location: | Littleton, CO |
Users: | 38 |
Nodes: | 10 (0 / 10) |
Uptime: | 14:17:30 |
Calls: | 387 |
Messages: | 37,092 |