[mrtg] Re: win98 and mrtg problems: narrowed

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Mar 3 02:33:05 MET 2001


WESMORENT at aol.com wrote:
> 
> I just got done narrowing may "bad command or file" while running perl mrtg 
> mrtg.cfg syntax.  It seems to be in the writegraphics routine.  In the 
> writegraphics routine it seems to be this line:
> 
> open(RATEUP, join(" ", at Exec.";");

This is a line I don't have in my version of MRTG.
The closest I get is: open (RATEUP, join (" ", @exec)."|");

Maybe it helps if you try another version of MRTG.

> could anyone tell me why this would be giving me a bad command or file error 
> when I run perl mrtg mrtg.cfg?

Obviously something is wrong with the @Exec array.
Print it, may be you spot what's wrong with it.

Put this line just above the open statement:
    print @Exec;

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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