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 debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 51E59FDD.9000201@fuckaround.org">http://lists.debian.org/[🔎] 51E59FDD.9000201@fuckaround.org
>
Attachment:
signature.asc
Description: Digital signature