Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I am trying to find a way to avoid having to resort to shell when checking whether or not a directory is a mount point of a filesystem.
I looked at the file test operators but did find one that would do what I want. I can always do something like:
but I want to avoid shelling out :)))my $ismount =`/bin/mount | grep /opt/mymountpoint`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How best test that a directory is a mount point of a mounted filesystem?
by merlyn (Sage) on Jan 27, 2009 at 18:03 UTC | |
|
Re: How best test that a directory is a mount point of a mounted filesystem?
by kyle (Abbot) on Jan 27, 2009 at 17:33 UTC | |
by Plankton (Vicar) on Jan 27, 2009 at 17:40 UTC | |
by jh- (Scribe) on Jan 27, 2009 at 17:51 UTC | |
by jh- (Scribe) on Jan 27, 2009 at 18:00 UTC | |
by regexes (Hermit) on Jan 28, 2009 at 12:26 UTC | |
|
Re: How best test that a directory is a mount point of a mounted filesystem?
by leocharre (Priest) on Jan 27, 2009 at 19:30 UTC |