Touch a file on the NAS share with a name such as NAS.HERE, and in your script check that that file exists. If it exists, then it's mounted, if not, then it's not mounted.
Ken --- Chris <[EMAIL PROTECTED]> wrote: > On Thursday 24 April 2008, Damon L. Chesser wrote: > > Chris wrote: > > > Hello, > > > > > > I want to run a script to rsync local files to a > NAS mounted to > > > /mnt/music. Sometimes the NAS is not running, > and I want to prevent the > > > script from writing to the mount directory: is > there any easy way to > > > prevent this? > > > > > > Thanks, > > > > > > C > > > > How are you accessing the NAS? NFS? SAMBA? > > smbfs > > > > > -- > > Damon L. Chesser > > [EMAIL PROTECTED] > > http://www.linkedin.com/in/dchesser > > > > -- > C. Hurschler > > > -- > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > ___________________________________________________________ Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure http://green.yahoo.com/uk/earth-day/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]