I would like to use Perl to monitor an NFS mounted disk on a Solaris 9 Sun box. If I use the "open" command to look for a particular file on the NFS mounted disk, and the NFS session drops, then the Open command hangs rather than fails. Hence I can not use if(!open(TESTFILE,$testfile)...
I have also tried using a netstat -a|grep for nfs and found that that is unreliable.
Any suggestions to easily monitor if I have a disk properly NFS mounted using a perl command that will not hang. That is it should return a success or failure rather than hang.
thanks
W3NTP