| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | globally parse command line parameters |
following up a message from Richard Webb to Paul Quinn:
HI Paul,
PQ> Almost. There's a missing GOTO after the "if [%1]==[?]" tests in
PQ> the ChekParm.bat procedure. I haven't had a chance to try out the
PQ> method till this arvo. If you insert a "goto STOP" just before the
PQ> ":FINISH" label it'll work better. It even works in my
PQ> ship-in-a-bottle XP Home under VirtualBox in linux. =:)
would have discovered that, in fact did when I was looking
later, figured otherwise we'd do the fall through thing, and that cleans up the code.
NIce solution and thanks a bunch again! Works like a champ.
AT the end of the month all these things are parsed. Making liberal use of
Horst's nset and listmod, and TImo's function
evaluator to calculate from a batch as well.
SInce we've been using papa as our example we'll stick with
it. HEre's what happens at the end of the month.
Earlier we've calculated how many sessions of the net were
conducted previous month. sHOuld be equal to days in
previous month. wE store that in env var %SES% for later
use.
You'll note I renamed fgrep386 to fgrep, less typing >
::first we build the temporary file which will be added to
:: monthly report ...
echon tcc station Papa >> papastat.rep
type cr.txt | find "papa" /i /c >> papastat.tmp
fgrep -s papa cr.txt >> papastat.txt
nset papa=$1 < papastat.tmp
fn /b %PAPA%/%SES% >> papastat.rep
:: the above gives us a percentage of sessions where
:: schedule rep "papa" was present. REpresented as decimal
:: of course.
set papa=
echo. >> papastat.rep
del papastat.tmp
type papastat.txt | listmod call canstats.bat $1 papa papastat >>
canstat.bat echo del papastat.txt >> canstat.bat
AGain we're using horst's listmod to build a batch. THis
batch will tell us how many sessions each operator
represented that schedule.
IF I've all the daily reports from previous month on hand
when first of month morning maintenance evvent rolls around
then my monthly report will be automagically compiled and
ready for emailing. Once I've debugged all that process it
will be automagically emailed to those who should receive it .
Appreciate your help again. You've sure ben my idea man
last year or two .
Regards,
Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)SEEN-BY: 10/1 3 34/999 120/228 123/500 128/2 140/1 222/2 226/0 249/303 250/306 SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119 SEEN-BY: 393/68 396/45 633/104 260 267 285 640/954 690/682 734 712/0 313 848 SEEN-BY: 800/432 801/161 189 2222/700 2320/100 105 200 2905/0 @PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 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™.