[mrtg-developers] Re: Timeout on external scripts

Andreas Plesner Jacobsen apj at mutt.dk
Fri Oct 3 09:55:20 MEST 2003

On Fri, Oct 03, 2003 at 02:18:23AM +0200, Lars Rune Bjørnevik wrote:
> Do you know a way to add a timeout in the 
> "sub getexternal" routine in ber.pm (in line 1637?):

You could do magic with a SIGALRM handler and alarm(), try
perldoc -f alarm.

An easier approach might be that you just troubleshoot your external
scripts and make sure that they add a timer to their I/O operations.

Andreas Plesner Jacobsen | if it GLISTENS, gobble it!!

Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers

More information about the mrtg-developers mailing list