TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: mark lewis
from: Jasen Betts
date: 2003-12-17 06:58:54
subject: long BTM file

Hi mark.

16-Dec-03 10:21:36, mark lewis wrote to Jasen Betts


 JB>> cool, I pasted it in and then pushed it around a bit and stuck a
 JB>> few ifs in to make some bits optional and shorten some of the
 JB>> long lines and one minior change:

 ML>>> Executing %{at}UPPER[%[run%m]]... >> %logfile

 JB>> I removed %{at}upper because some programs are case-sensitive with
 JB>> their commad-line options.

 ml> ahhh... i wasn't quite aware that it logged the command line
 ml> options, too... the main idea was to log with application being
 ml> executed... preferrably without the path or extension but that's
 ml> ok, too... i guess it doesn't really matter that much..

 ml>>> there should possibly be a log entry for the A rule and how it
 ml>>> was answered for the program being asked about running... i
 ml>>> haven't dug that far into it, though... still trying to figure
 ml>>> out some of the syntax..

 JB>> I've added that too, also logging of options... I've just gotta
 JB>> test it now!

 ml> cool... look forward to the next release/update...

I want to speed this bit up first.... it seems to be slowing everything
down.  after I fix it (or give up) I'll post the new version.

    set RULE=%[RULES].
    do while "%RULE" ne ""
     set X=%{at}INSTR[0,1,%RULE]
     set RULE=%{at}INSTR[1,99,%RULE]

     iff %{at}index[+-0123456789,%[x]] ne -1 then
        set V=%[V]%[X]
     else
        if "%V" == "" set V=0
        if "%[RULE_%R]" ne "" set V= %V
        set RULE_%R=%[RULE_%R]%V
        set V=
        SET R=%{at}UPPER[%[X]]
     endiff
  enddo



 -=> Bye <=-

---
* Origin: Money is the root of all wealth. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/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™.