TIP: Click on subject to list as thread! ANSI
echo: artware
to: Robert Bull
from: Gerald Miller
date: 2002-11-27 19:45:08
subject: wimm

Hello Robert,

    On Wednesday November 27 2002 at 20:17,
    Robert Bull [2:250/501.4] wrote to Gerald Miller,
    about:  wimm

 GM>> Sorry for not specifying the "*Tee" directly, but yes, I have a
 GM>> few ALIAS commands at the start of my batch:
 RB> Interesting - I wouldn't have thought that tee would work from an
 RB> alias, but then, 4DOS is something special.

It was certainly money well spent, at the time (about ten years or so).
And I still consider myself to be a novice programmer.... 

 GM>> the Squish Maintenance Log and I now think it takes a real effort
 GM>> to get a truly proficient SED script file.  I only use SED on
 GM>> very basic tasks....
 RB> I would agree with that  :-)  The O'Reilly AWK & SED book seems the
 RB> first one that has any kind of intelligible explanation of SED, but
 RB> once one has got to grips with at least the basics of AWK, AWK is so
 RB> much more productive...

I would request that you provide the publication info on the O'Reilly book.
I might give the info to Santa Claus as a stocking stuffer...  ;))

 GM>> And, I appreciated the System reports technique.  Most
 GM>> enlightening!
 RB> You're very gracious.  Thank you  :-)

Since you are sufficiently buttered up, I'll "pick" your mind some more. :)

 RB> I occasionally run the DOS version of SqTool to give system
 RB> statistics.  As this and the reports extracted from WIMM's log are
 RB> only of private interest, it made sense to put them in a special echo
 RB> that GoldED knows about but Squish doesn't, so there's no risk of them
 RB> ever getting scanned out.  It also made sense to post them as *.MSG,
 RB> so that they could automatically be deleted using DELAGE.COM, and
 RB> avoid having to maintain the area manually.

I did that when I created a "Reports" message base - GoldED reads it and
Squish ignores it.  The one exception to my using SendMsg is that I use
MsgPost/2 Version 2.0, Oct 2000 - (C) 1992 by CodeLand Australia and
"touched up" by Tobias Ernst.  MsgPost will store messages / reports in
Squish format...

 GM>> your NDOS, see if it will support the "/q" switch -
eliminate the
 GM>> "NUL"  ;-)) ):
 RB> I'll have to dig out the manual!  Thanks for the tip.

Or maybe copy to a temp file on a RAM disk...  :)

 GM>>     copy /q C:\Fd\FD.LOG + C:\Fd\Sq\WIMM.TMP

 RB> I never thought to consolidate the log files, but think I'd prefer to
 RB> keep them separate anyway as some are more important than others.

 GM>> And now I see that I should have been more "creative"
in dealing
 GM>> with the wimm.tmp file, perhaps on a certain %{at}filesize THEN copy
 GM>> /q....

Since our last discussion, I went and did some reworking of the wimm
section...

=== Cut ===
if exist C:\Fd\Sq\WIMM.TMP del /q C:\Fd\Sq\WIMM.TMP
wimm -fC:\Fd\Sq\ECHOTOSS.LOG
  if not exist C:\Fd\Sq\ECHOTOSS.LOG rem>C:\Fd\Sq\ECHOTOSS.LOG
(wrapped line)
iff exist C:\Fd\Sq\WIMM.TMP .and. %{at}filesize[C:\Fd\Sq\WIMM.TMP,b]
      LE 230 then %+
  del /q C:\Fd\Sq\WIMM.TMP
else
  type C:\Fd\Sq\WIMM.TMP >> C:\Fd\FD.LOG
endiff
=== Cut ===

I found that the copy command was not performing as I had expected.  I
determined that the "no messages" wimm temp file was 226 bytes, so it is
getting deleted, right off the top.

I want to try to delete those same four lines /_BEFORE_/ it gets typed to
the FD.LOG file....

Now, I'm trying to determine the place to inject your REPORT.BAT snippet...

I'll likely try something after the endiff.

 RB> My MAIL.BAT contains the lines

 RB> logtrim wimm.log 32 40 ""
 RB> if errorlevel 1 wait Problem trimming WIMM.LOG...

 RB> which means that every time WIMM.LOG exceeds 40K, LOGTRIM.COM chops
 RB> the top off to reduce it to 32K.  WAIT.COM is yet another Horst
 RB> Schaeffer utility;

Look like you are a "true fan and" user of the file releases of the
BatPower BFDS file echo and particularly, Horst Schaeffer utilities.  :)
He is truly phenomenally gifted to develop some of these priceless little
gems.

 RB> I admit that I had forgotten how complicated the process was until I
 RB> looked at it again in this discussion.  I must have _really_ wanted to
 RB> get the results!

The next line is giving me some trouble....

=== Cut ===
:: NEXT LINE WRAPPED
logecho fgrep -xs "$D $N" wimm.log | lmod [] ["|"] mawk
-f wimmxtrc.awk
  [">>"] wimm.rpt >> wimmtemp.bat
=== Cut ===

particularly, the LISTMOD [] ["|"] section....  I think there is something
about it that 4dos doesn't like.  I'll have to dig a little deeper and use
4dos debug....

 RB> Maybe I should add, my usual choice for running AWK scripts is Mike
 RB> Brennan's MAWK, MAWK122X.ZIP.  GNU AWK (GAWK) is the best-known one
 RB> now, but MAWK is not only a smaller download, it usually runs scripts
 RB> much faster too.

I think my version is by Mike and is Version 1.2 - Last change: Dec 22
1994.

           Cheers ... Gerald

... All work and no play make Jack a dull boy and Jill a wealthy widow.

--- GoldED+/386 v1.1.5-21124
* Origin: Things equal to nothing else are equal to each other. (1:342/512)
SEEN-BY: 24/903 106/2000 120/544 123/500 132/500 140/1 342/5 512 400/300
SEEN-BY: 633/104 260 262 267 270 285 640/954 770/215 771/4020 774/605
SEEN-BY: 2432/200
@PATH: 342/512 5 140/1 106/2000 123/500 774/605 633/260 285 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.