Check a samba mount is still available in Linux Bash
Sometimes in shell scripts I need to get files from Samba shares but these can become disconnected for various reasons so it’s always a good idea to check before retrieving data from them. An easy way to do this is to check whether the share you want to use is mentioned in /proc/mounts which is part of the proc virtual file system. /proc/mounts is not a real file like many end points in linux. So in my linux bash script…