[mrtg] Re: Trying to log ConfigMaker output

Steve Shipway s.shipway at auckland.ac.nz
Mon Nov 28 21:17:21 MET 2005


>I have tried to implement my cfgmaker command line with a 
>redirect to a log file so that I can have somewhere to see if 
>ConfigMaker had any problems. 
...
>It is interesting to note that each allows configmaker to run 
>successfully and display output in the DOS window, but none of 
>them redirect the output to the log.txt file.  Any ideas?

The cfgmaker script sends the progress output on STDERR, file descriptor 2.
In order to redirect this to a logfile, you need to redirect this and not
STDOUT (file descriptor 1, the default).  Hence, if you just use the normal
redirect, it wont catch this output.

Under UNIX, you would use:

cfgmake foo 2>>/tmp/logfile

to redirect stderr, but I don't know what syntax the DOS world uses.

Steve

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list