TIP: Click on subject to list as thread! ANSI
echo: artware
to: Robert Bull
from: Gerald Miller
date: 2002-11-23 09:33:58
subject: wimm

Hello Robert,

    On Thursday November 21 2002 at 21:56,
    Robert Bull [2:250/501.4] wrote to Gerald Miller,
    about:  wimm

 GM>> I'm using 4DOS and WIMM, but sending WIMM's output to a temp file
 GM>> AND to the log.  I SED the temp file and use it as input to
 GM>> SendMsg for netmail. Essentially the same technique, but 4DOS
 GM>> permits more flexibility.
 RB> I guess you mean a "tee?"  I never thought of that, and
I've got NDOS
 RB> here!  BTW, I've seen a few "tee" type TSRs for people
without 4DOS,
 RB> but haven't tried them.

Sorry for not specifying the "*Tee" directly, but yes, I have a
few ALIAS commands at the start of my batch:

=== Cut ===
:Start
alias TFD=*tee /a C:\Fd\FD.LOG
alias TLG=*tee /a C:\Fd\TIMELINE.LOG
alias TSQ=*tee /a C:\Fd\Sq\SQMAINT.LOG
alias twin=`echo. %+ echo.`
=== Cut ===

 RB> I couldn't quite get SED to format the output the way I wanted it, so
 RB> used AWK instead.  You need to be pretty good to use SED, I think.
 RB> It's sort of like the difference between using an early programmable
 RB> calculator and a proper programming language...

To be truthful, neither could I!  I had to take a look at the batch file to
RE-discover that I had not performed any DIRECT wimm reporting / processing
/ logging...  The SED processing was being performed on the Squish
Maintenance Log and I now think it takes a real effort to get a truly
proficient SED script file.  I only use SED on very basic tasks....

I saw your approach discussed with andrew to be very informative and I will
attempt an adaptation on my end.  My 4dos entry point is (check your NDOS,
see if it will support the "/q" switch - eliminate the
"NUL"  ;-)) ):

=== Cut ===
:Wimm
::                            Where Is My Mail
::
::    refer to: C:\Fd\Sq\Doc\WIMM.DOC
::              C:\Fd\Sq\WIMM.CFG
    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
    copy /q C:\Fd\FD.LOG + C:\Fd\Sq\WIMM.TMP
::
=== Cut ===

And now I see that I should have been more "creative" in dealing with the
wimm.tmp file, perhaps on a certain %{at}filesize THEN copy /q.... Else ...
OR, used 4dos to parse the wimm.tmp file because, I look at the FD.LOG, I
see some unnecessary info:

=== Cut ===
+ 22 Nov 21:00:53 SQSH End.  Toss=13 (1/s), sent=0 (0/s), mem=31700K

  22 Nov 21:01:02 WIMM Begin, WIMM 1.31 (408 K)
  ...
  ...
  22 Nov 21:01:02 WIMM End, WIMM 1.31 (408 K)

----------  Fri 22 Nov 02, FD 2.26.SW
=== Cut ===

I admit to being lazy and see some "surgeries" are called for....


And, I appreciated the System reports technique.  Most enlightening! :)

           Thanks ... Gerald

... I *DO* have a firm grip on reality! Now I can choke the life out of it!

--- GoldED+/386 v1.1.5-21114
* Origin: Mayor McCheese caught in a hotel room smoking crack! (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™.