On Tue, Mar 13, 2018 at 03:56:00PM -0400, The Wanderer wrote:
> On 2018-03-13 at 15:39, Joe wrote:
>
> > On Tue, 13 Mar 2018 14:49:56 +0100 wrote:
>
> That test can be spoofed, however, by the creation of a directory with
> the same name (and/or other characteristics) under the mount point while
On Tue, 13 Mar 2018 15:56:00 -0400
The Wanderer wrote:
> On 2018-03-13 at 15:39, Joe wrote:
>
> > On Tue, 13 Mar 2018 14:49:56 +0100 wrote:
>
> >> On Tue, Mar 13, 2018 at 10:33:43PM +0900, Mark Fletcher wrote:
>
> >>> Unless I've misunderstood the question, you can tell if
> >>> something
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, Mar 13, 2018 at 03:56:00PM -0400, The Wanderer wrote:
> On 2018-03-13 at 15:39, Joe wrote:
[...]
> > I prefer to test for the existence of a known lower directory in
> > this case, which tests not only for mounting but for a successful
> > re
On 2018-03-13 at 15:39, Joe wrote:
> On Tue, 13 Mar 2018 14:49:56 +0100 wrote:
>> On Tue, Mar 13, 2018 at 10:33:43PM +0900, Mark Fletcher wrote:
>>> Unless I've misunderstood the question, you can tell if
>>> something is mounted at a mount point by checking if anything is
>>> present under the
On Tue, 13 Mar 2018 14:49:56 +0100
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Tue, Mar 13, 2018 at 10:33:43PM +0900, Mark Fletcher wrote:
> > >
> > Unless I've misunderstood the question, you can tell if something
> > is mounted at a mount point by checking if anything i
On Tue, Mar 13, 2018 at 07:51:32AM -0700, Mike McClain wrote:
> Thank you Richard.
> I suspect $(grep /south40/docs/ /proc/mounts) would be faster than
But that would be wrong, because it would incorrectly return "true"
if you have something mounted at /south40/docs/subdir or /media/south40/docs/
Thank you Richard.
I suspect $(grep /south40/docs/ /proc/mounts) would be faster than
$( mount | grep 'south40/docs').
And I'm sure [ -f /south40/docs/.flag ] would be.
Much obliged.
Mike
On Tue, Mar 13, 2018 at 05:37:07PM +1300, Richard Hector wrote:
> On 13/03/18 16:40, Mike McClain wrote:
> > I
Thank you David.
As it happens I have util-linux installed but as with most of Gnu/Linux
there are hundreds of programs I've never used and don't know what do.
Appreciate the heads-up.
Mike
On Tue, Mar 13, 2018 at 08:49:58PM +1100, David wrote:
> On 13 March 2018 at 14:40, Mike McClain wrote:
> >
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, Mar 13, 2018 at 10:33:43PM +0900, Mark Fletcher wrote:
> On Tue, Mar 13, 2018 at 08:49:58PM +1100, David wrote:
> > On 13 March 2018 at 14:40, Mike McClain wrote:
> > >
> > > If my other computer is South40 and I want to mount South40's /docs
On Tue, Mar 13, 2018 at 08:49:58PM +1100, David wrote:
> On 13 March 2018 at 14:40, Mike McClain wrote:
> >
> > If my other computer is South40 and I want to mount South40's /docs
> > on my /south40/docs/ directory I can do that. As one script calls
> > another I want to know if I need to mount So
On 13 March 2018 at 14:40, Mike McClain wrote:
>
> If my other computer is South40 and I want to mount South40's /docs
> on my /south40/docs/ directory I can do that. As one script calls
> another I want to know if I need to mount South40 without
> $( mount | grep 'south40/docs').
>
> Suggestions?
On 13/03/18 16:40, Mike McClain wrote:
> A while back, Pierre Gaston posted this little tidbit to quickly
> determine if my network is up:
> [ "$(
> Now I wonder if there is a similar file in /sys that would tell if
> anything is mounted on a particular directory. I've browsed /sys but
> not f
A while back, Pierre Gaston posted this little tidbit to quickly
determine if my network is up:
[ "$(
13 matches
Mail list logo