Paul E. Condon [2012-07-20 09:50:53 -0600] wrote:
> I need a way to test in Bash whether, or not, there actually is a disk
> mounted at /media/wdp8.
#!/bin/sh
if mountpoint -q /media/wdp8; then
echo Mounted
else
echo Not mounted
fi
--
To UNSUBSCRIBE, email to debian-user-requ.
On 20120720_122714, Rob Owens wrote:
> On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote:
> >
> > Debian already provides an email facility that allows cron scripts to
> > email me with error messages. I need a way to test in Bash whether, or
> > not, there actually is a disk mounted a
On Fri, Jul 20, 2012 at 07:04:35PM +0100, Tixy wrote:
> On Fri, 2012-07-20 at 09:50 -0600, Paul E Condon wrote:
> > I need a way to test in Bash whether, or
> > not, there actually is a disk mounted at /media/wdp8.
>
> A bit hacky, but what I do in my backup scripts is...
>
>if mount | grep
On Fri, 2012-07-20 at 09:50 -0600, Paul E Condon wrote:
> I need a way to test in Bash whether, or
> not, there actually is a disk mounted at /media/wdp8.
A bit hacky, but what I do in my backup scripts is...
if mount | grep -q " /media/wdp8 "
then
...
fi
--
Tixy
--
To UNSU
On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote:
>
> Debian already provides an email facility that allows cron scripts to
> email me with error messages. I need a way to test in Bash whether, or
> not, there actually is a disk mounted at /media/wdp8.
>
> What test can I code in Ba
On Fri, 20 Jul 2012 09:50:53 -0600, Paul E Condon wrote:
(...)
> What test can I code in Bash to determine that there is no disk mounted
> at this mount point? I'm thinking of testing for the presence of the
> file lost+found, but is there something better?
Check if any of these tips help:
http
On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote:
>
[cut]
> What test can I code in Bash to determine that there is no disk
> mounted at this mount point? I'm thinking of testing for the
> presence of the file lost+found, but is there something better?
Two points.
1. See if "man mou
7 matches
Mail list logo