<html><div>try this perl script</div>
<div>Command to run is "/usr/local/mrtg-bin/mrtg-all
/home/httpd/stats/configs > /dev/null 2 >&1"</div>
<br>
<br>
<div>#!/usr/bin/perl</div>
<br>
<div>$mrtgBIN = "/usr/local/mrtg-bin/mrtg";</div>
<div>while (@ARGV) {</div>
<div> $StartDir = shift (@ARGV);</div>
<br>
<div> if (not (-e $StartDir)) {</div>
<div> print "$StartDir does not
exist.\n";</div>
<div> exit;</div>
<div> }</div>
<br>
<div> $Command = "/usr/bin/find $StartDir -name
\"*.mrtg.cfg\"";</div>
<div> open(FILES,"$Command |");</div>
<div> while ($File = <FILES>) {</div>
<div> chop($File);</div>
<div> system("$mrtgBIN $File");</div>
<div> }</div>
}
<br>
<hr>
<font color="#000080">David
Gabler
Production Systems Supervisor<br>
Americom USA<x-tab> </x-tab> Phone
805.545.5078<br>
<hr>
</font></html>