Subj : Re: Copy before process.. To : All From : Nigel Reed Date : Thu Sep 19 2024 15:04:58 On Thu, 19 Sep 2024 19:27:58 +0200 "Floris van Unen" (2:280/2050) wrote: > Hello Rick! > > 19 Sep 24 09:51, you wrote to all: > > RS> Hello All! > > RS> I am trying to track down an error from a downlink... How would > RS> I copy pkts before process? Is in the main-in script I use or ? > RS> I believe it has to be when binkd receives and before hpt > RS> 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 Nice script. it's a shame someone didn't do something like that the day fidonet started. It would be a great archive to have. -- End Of The Line BBS - Plano, TX telnet endofthelinebbs.com 23 --- SBBSecho 3.20-Linux * Origin: End Of The Line BBS - endofthelinebbs.com (1:124/5016) .