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 |