I'm looking to create a NFS mount point monitoring shell script not sure if im going the right way about it so could do with some help. What i was thinking of doing was using the below command but am unsure how to handle the output. So if the filesyetem is active it will return "1" but if is not active It will return "0" how do I then handle the output from the below command in a shell script?
something like this is a good practice... create a file on a share, check the file (write to it...) and delete it afterwards... if all of this works, the share should be good.