Edit: Make sure to listen to Fletches advice below as well.$SIG{ALRM} = sub { die "Seems hung"; }; # 30 seconds alarm(30); if (open(TESTFILE, $testfile)) { alarm(0); # disable alarm }
In reply to Re: How to monitor an NFS mount with perl
by cowboy
in thread How to monitor an NFS mount with perl
by w3ntp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |