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: | Sarah |
---|---|
Location: | Portland, Oregon |
Users: | 19 |
Nodes: | 16 (0 / 16) |
Uptime: | 53:49:58 |
Calls: | 126 |
Calls today: | 126 |
Files: | 84,009 |
U/L today: |
5 files (318K bytes) |
D/L today: |
33 files (8,385K bytes) |
Messages: | 38,259 |
Posted today: | 25 |