I need to check if mounted is online in script. and complete that check in maximum time of 1 second.
I tried:
smbclient -L -U user%pass
- but it takes too much time, and makes a trash in destination serwer logfile because of reloginstat /mnt/samba/file
- but it stucks when the samba share is offline
Maybe one of You will help to find another way to complete that?
Destination samba is using SMB3.0 protocole.
Regards