On Tue, Jul 16, 2013 at 09:32:45PM +0200, Pol Hallen wrote: > Hi all :-) > > mount -t cifs //server/share /local -o [...] > > I do this mount via vpn (over internet), How I check if this mount point > is active? If there's a alive connection? > > Because (by cron) I run some scripts to do operations. > > PS: If internet connection goes down, this mount point will not be > alive. How I check it?
You could try a simple "ls". The man page says:
Exit status:
0 if OK,
1 if minor problems (e.g., cannot access subdirectory),
2 if serious trouble (e.g., cannot access command-line argument).
> thanks!
>
> Pol
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
> Archive: http://lists.debian.org/[email protected]
>
signature.asc
Description: Digital signature

