Check to see if share is mounted

Jerry jerry at seibercom.net
Tue Oct 29 11:40:26 UTC 2013


I have several Bash scripts that backup data to a Windows drive. I am
looking for a one or two line snippet of code that I can use to
determine if the share is all ready mounted. I tried trapping the exit
code of the "mount_smbfs" command, but it always returns "0". Is there
another way to get info on the share?

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________



More information about the freebsd-questions mailing list