You could make it a service: Create a batch file called mrtg.bat with the following line: perl mrtg mrtg.cfg
Save it in your MRTG \bin folder Save the following to a text file called mrtg.reg (Modify the Application and AppDirectory lines to reflect your actual installation directory): Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"=hex(2):73,00,72,00,76,00,61,00,6e,00,79,00,00,00 "DisplayName"="MRTG" "DependOnService"=hex(7):54,00,63,00,70,00,69,00,70,00,00,00,00,00 "DependOnGroup"=hex(7):00,00 "ObjectName"="LocalSystem" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters] "Application"="D:\\mrtg-2.9.27\\bin\\mrtg.bat" "AppDirectory"="D:\\mrtg-2.9.27\\bin\\" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Security] "Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 2,\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ 00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\ 05,12,00,00,00,74,00,69,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\ 20,00,00,00,20,02,00,00,76,00,65,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\ 00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\ 00,05,20,00,00,00,23,02,00,00,76,00,65,00,01,01,00,00,00,00,00,05,12,00,00,\ 00,01,01,00,00,00,00,00,05,12,00,00,00 Double click on the file to import it in your registry. Obtain the resource kit files instsrv.exe and srvany.exe and save them to your \winnt directory Open a command window and type: instsrv MRTG srvany Open Services and start the new MRTG service. If you use WMI scripts you will need to change the startup user to a local administrator account. Your mrtg.conf file must contain the line "RunAsDaemon: Yes" for the service to run every 5 minutes. Good luck! Joseph Pierini -----Original Message----- From: Jon [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 11:33 AM To: [EMAIL PROTECTED] Subject: [mrtg] Re: How to auto-start mrtg (wperl)..... You can put the .exe in the startup folder -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Nowell Sent: Tuesday, September 28, 2004 1:48 PM To: [EMAIL PROTECTED] Subject: [mrtg] How to auto-start mrtg (wperl)..... Does anyone have a good way to auto-start mrtg (wperl) when the Windows 2003 Server that it's running on is restarted? ---------------------------------- Marc A. Nowell -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
