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: | Angel Ripoll |
---|---|
Location: | Madrid, Spain |
Users: | 10 |
Nodes: | 8 (0 / 8) |
Uptime: | 194:04:46 |
Calls: | 469 |
Files: | 13,989 |
Messages: | 63,608 |