[mrtg] Help regarding Perl script

Shujaat Nazir Khan snk at cyber.net.pk
Mon Feb 11 14:57:06 MET 2002


Hi All

I am running mrtg2.9.12 on Solaris platform. I am running .cfg files by
using Perl script which is given below:

#!/usr/bin/perl
$interval=120;
while(1)
{ sleep ($interval - time() % $interval);
system '/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/conf/mrtg.cfg';
system '/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/conf/mrtg2.cfg';
}

But whenever I exit from Telnet session the script becomes stopped.
Everytime I have to go on Server's Console & start the script. Is there
anyway to get rid of such a hectic situation ???
Immediate response will be highly appreciable.....!

Thanks 'n' regards,
Shujaat Nazir Khan



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