[mrtg] Re: .cmd file angst
Christian Terek
cpt at mnsi.net
Mon Oct 4 22:59:37 MEST 1999
DD,
Here is what I have for every cfg file:
start cmd /c c:\perl\bin\perl c:\mrtg\run\mrtg
c:\mrtg\run\pap\aps\prtapmem.cfg
I have one file runmrtg.cmd that is run by the mrtg service, and about 15
cfg files. Each one uses the same syntax as above.
This makes it exit every time. Works great.
Cheers
_______________
Christian Terek
MCSE+I
-----Original Message-----
From: Chairman of the Bored <list-mrtg-talk at L7.org>
To: mrtg at list.ee.ethz.ch <mrtg at list.ee.ethz.ch>
Date: Monday, October 04, 1999 1:39 PM
Subject: [mrtg] .cmd file angst
>
>
>good morning :)
>(yeah, i know, it's monday :(
>
>I am using a service called mrtgsrv to run a mrtg.cmd file every 5 minutes.
>
>this file looks like this:
>
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\total-bandwidth.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\port-useage.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\bandwidth-one.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\bandwidth-two.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\backbone.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\server-colo.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\frankenserver.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\franken-bsd.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\call-me-snake.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\catalog-cpu.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\sql.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\mailserver-1.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\mailserver-2.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\atm-1.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\atm-2.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\auspex-01.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\auspex-02.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\suncluster.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\colo-1.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\colo-2.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\colo-3.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\colo-4.cfg
>C:\BIN\PERL.EXE C:\MRTG\MRTG C:\MRTG\colo-5.cfg
>
>
>when i run it from the command line it does what it's supposed to.
>same if i hit enter on it in filemanager.
>
>however, letting the service do it, every 5 minutes it
>adds a cmd.exe process in task manager.
>
>right now task manager is showing
>
>image name PID CPU CPU Time Mem Useage
>
>cmd.exe 284 01 0:00:00 1004k
>cmd.exe 257 00 0:00:00 404k
>cmd.exe 264 00 0:00:00 44k
>cmd.exe 274 00 0:00:00 44k
>cmd.exe 277 00 0:00:00 44k
>cmd.exe 276 00 0:00:00 44k
>
>
>
>it looks like it's not exiting the mrtg.cmd file cleanly.
>anyone have any ideas? killing all the processes every
>morning is starting to be annoying..
>
>thanks,
>-dd
>
> \\\\\//
> \\|// _\\|//_ | | _\\|//_ \\|//
> (@ @) (' 0-0 ') (.) (.) (' @-@ ') (o-o)
>+-=oOOo-(_)-oOOo=oo0=(_)=0oo=oOO=-(_)-=OOo=oo0=(_)=0oo=oOOo-(_)-oOOo=-+
> Plazma Networking Services / Level Seven inc.
> Connecting the World....
> http://www.plazma.net http://www.L7.net http://www.L7.org /"\
> Olympia's "one stop" InterNetworking Provider 1 (360) 357 - 7315 \ /
>+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ X
>ASCII Ribbon campaign against HTML E-Mail >- - - - - - - - - - - - - -> / \
>
>--
>* To unsubscribe from the mrtg mailing list, send a message with the
> subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Christian P Terek.vcf
Type: text/x-vcard
Size: 130 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/19991004/19269279/attachment.vcf
More information about the mrtg
mailing list