Check samba connection
Dear All,
I would like to write a script that checks if there is a connection and directory is really mounted (sometimes an entry it appears in /etc/mtab, but there is no connection in fact) This scripts will periodically (using cron) check if the mounted directory is still available.
I am mounting directory suing command (as root)
su - oracle -c "smbmount //192.168.3.1/BITEX_b /home/oracle/BITEX-backup -o username=oracle,password=oracle,rw"
What command should I use to check if SAMBA connection is still available?
Thanks for help
Groxy
|