[mrtg] Re: Help regarding Perl script

Scott Howell showell at adelphia.net
Mon Feb 11 15:56:41 MET 2002

Try using a cron....

Another alternative is to put an ampersand -->  &  <--  after the command on
the commandline..

[user at server /home/user]# myscript.pl &

this will tell the kernel to spawn a seperate thread to handle this "task"

Good Luck...

-----Original Message-----
From: Shujaat Nazir Khan <snk at cyber.net.pk>
To: Mrtg List <mrtg at list.ee.ethz.ch>
Cc: Shujaat Nazir Khan <snk at cyber.net.pk>
Date: Monday, February 11, 2002 9:00 AM
Subject: [mrtg] Help regarding Perl script

>Hi All
>I am running mrtg2.9.12 on Solaris platform. I am running .cfg files by
>using Perl script which is given below:
>{ 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

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