2
votes
9answers
6k views

sh scripting: how to mount a remote filesystem if it is not mounted?

In a bourne shell script (#!/bin/sh) how can check to see if a remote NFS share is mounted and, if it is not, mount it? I've got an ugly set of cat, greps and ifs using the output of 'mount' at the ...