[mrtg] MRTG vs Windoze 95/98/ME

Jeff Liebermann jeffl at comix.santa-cruz.ca.us
Fri Nov 10 03:24:23 MET 2000

MRTG 2.9.4 does not work with Windoze 95/98/ME and generates a "Bad
command or filename" error message when run.  It properly generates
the HTML page, but fails to generate any graphs.

It's a Perl bug, and not with MRTG.   ActiveState's ActivePerl 5.6
Build 620 and below belches the wrong directory delimiter in the
FindBin module which returns:
for RealBin::Bin.  This will not work with Windoze 95/98/ME (but seems
to work with NT4/Win2k).

The fix is to add 4 lines near the bottom of:
$RealBin = abs_path($RealBin) if($RealBin);   ## existing line
 if $(IsWin32)            ## added
 {                        ## added
  $Bin =~ s/\//\\/g;      ## added
 }                        ## added

My thanks to Josh Wand for debugging the problem, finding the fix, and
submitting the bug report to ActiveState, and to Robert C. Dike for
reminding me why I hate programming.

Now, to update the web page...

# Jeff Liebermann   150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice
# 831.426.1240 fax     http://www.cruzio.com/~jeffl
# 831.421.6491 digital_pager   jeffl at comix.santa-cruz.ca.us

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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

More information about the mrtg mailing list