Hi! mark,
On Thu, 03 Apr 14, you wrote to me:
It's infinitely better than the way binkD minces multiple
sessions into a single logfile.
if you think that's bad, you haven't done much wading into your *nix boxen's logs in a long while...
That's correct. I only have time for reading Fido-related software logs. :) On rare occasions will I go digging in the system logs, and then only for specific (rare) problems.
remember that binkd originates from *nix and that's where the
development mindset is... this is why we haven't been able to get some requests fulfilled (eg: adding some additional semaphore files for
things like freezing binkd for log processing, terminating binkd with
a specific error level for maintence or log processing, and
similar)...
Ah-huh. Absolutely.
FOR %%N IN (ip_*.log) DO IF EXIST %%N DEL %%N [ ... ]
FWIW: you shouldn't need the "if exist" there because the file
wouldn't be there if "for %%n in" didn't find it to start with ;)
For that matter, I could probably just do a flat 'DEL /Y ip_*.log' but I left it in as it works IAC. ;-)
BTW, I do have a BATch that can de-splice a binkD logfile. :)
desplice? as in break out each session by session id number? how do
you keep them in date/time order to make running down the day's
sessions easier to follow?
Yes. Yes. The logfile is already in date/time order, so it's just a matter of
stepping through the log searching for (what I call) ID tags, matched with a "session with" log entry. This is the theory. I'd forgotten that I used to be
really only looking for _outbound_ sessions since I wasn't running binkD in daemon mode then (2001), with the target string being "call to".
Pseudocode:
-----------
PROCESS EACH LINE IN THE FILE
FOR EVERY "call to" LINE
EXTRACT THE PROCESS_ID TAG
FOR EVERY OCCURRENCE OF THAT PROCESS_TAG OUTPUT THE LOG DETAIL
BUMP A LINE COUNTER
LOOP UNTIL WE RUN OUT OF LINES
The guts of the script uses a couple of DOS commands...
[ ... ]
TYPE %TEXTFILE%|FIND "[%ID_TAG%]">%OUTFILE%
[ ... ]
Easy-peasy.
Cheers,
Paul.
... Hey SysOp! You'd better upgrade me or el%$^&%NO CARRIER
--- Paul's Win98SE VirtualBox
* Origin: Quinn's Post - Maryborough, Queensland, OZ (3:640/384)
--- SBBSecho 2.27-Win32
* Origin:
http://realitycheckbbs.org | tomorrow's retro tech (1:218/700)