Re: check mount

2013-07-30 Thread Zenaan Harkness
On 7/31/13, Pol Hallen wrote: >> if mountpoint -q $SECURE_MOUNTPOINT ;then >>exec $PROGRAM >> fi > > Cool! Very thanks! :-) In my local bash library, I have the following function, which shows the various iterations and tests I have used over the last few years: isMounted () { # make sure

Re: check mount

2013-07-30 Thread Pol Hallen
> if mountpoint -q $SECURE_MOUNTPOINT ;then >exec $PROGRAM > fi Cool! Very thanks! :-) Pol -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51f826b9.1010...@fuck

Re: check mount

2013-07-17 Thread Tixy
On Wed, 2013-07-17 at 10:32 +0100, Darac Marjal wrote: > 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 ali

Re: check mount

2013-07-17 Thread Erwan David
On Tue, Jul 16, 2013 at 09:32:45PM CEST, Pol Hallen said: > 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 operati

Re: check mount

2013-07-17 Thread Darac Marjal
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 operat

check mount

2013-07-16 Thread Pol Hallen
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 al