View Single Post

   
  #10 (permalink)  
Old 01-05-2008, 09:09 AM
Markus Baertschi
 
Posts: n/a
Default Re: check if a filesystem is mounted

Tim Moor wrote:
> MOUNT_POINT=$(df -M /comx/data 2>/dev/null | awk ' (NR==2) {print $2} ')


I would use the mount command and not the df command because if your
filesystem is on nfs and the server is not responding your script will
hang until the server is back.

See hayo's post for a suggestion.

Markus
Reply With Quote