I am thinking of something like a mobile charger that would plug in a
regular 3-pin plug at one end and a computer at the other, and some
software/sensor combo that would read the (DC) voltage at the computer end.
If there is no voltage, there is no power in the mains and ergo - we are in
the middle of a power outage, so take action. Know of something along these
(idea is to detect power failures, while powered by a "dumb" UPS unit - one
that cannot communicate with the a computer. Any other
> The dates are tentative because Canonical themselves have not released
> the dates. Once that is done, I will let you guys know the final
> dates. This is one of the "problems" of planning events ahead of time.
> But I am hoping that this will give everyone enough time to plan and
> attend the event!
Dates have been finalised. Now, it will be on March 2 and 3. Here is the
event page: http://loco.ubuntu.com/events/indian-team/2235/detail/ . As of
now, I have kept the event only on Saturday and Sunday. But if people are
interested, I can keep it on Friday as well.
I am using a script where I check if /home and /backup are present in /etc/mtab but can't manage the 'and' operator in grep. Currently I use the 'if grep -q "/home" ; then ......... then I do 'fi' and again 'if grep -q "/backup" to finally go to my commands. I tried to make grep do the AND combo but got errors as it works only on one line. I want my command to start only if both /home and /backup are present in mtab. With my dual check method it works, but I want a clean lean script.
From: Rajeev R. K.
Here you go.....
mount | grep -q home
mount | grep -q backup
if [ $HOMESTATUS -eq 0 -a $BACKUPSTATUS -eq 0 ]; then
echo "You got both man, do your thing..."
echo "Error -- either home or backup missing -- Or is it BOTH !%$!!@#%!"
R. K. Rajeev
Thanks Rajeev and Binand for your tips. I noticed a '-a' option in the if statement so will this below work?
If [grep -q "/home" mtab -a grep -q "/backup" mtab ] then.........
One of our journalists is doing a story on 'How safe is rooting your
android phone? Or is it worth rooting your android phone. Would be great
if we get some great inputs from you on the same. Please let us have
your your opinion/ views.
On Tue, Feb 12, 2013 at 1:53 PM, Arun Khan <knura9(a)gmail.com> wrote:
> Any help in solving this problem would be highly appreciated.
Fortunately, I have been able to recover the data due to sheer luck!
For details please see
-- Arun Khan
host mm.ilug-bom.org.in [18.104.22.168]: 450 4.7.1 <mail.sparc.net>: Helo
command rejected: Host not found
exim4 -Mvh 1U7A6g-0002Re-Q9
Debian-exim 102 102
234P Received: from debamd.sparc.net ([192.168.0.16] helo=debamd.localnet)
by mail.sparc.net with esmtp (Exim 4.69)
for linuxers(a)mm.ilug-bom.org.in; Mon, 18 Feb 2013 01:11:02 +0530
022F From: jtd(a)mtnl.net.in
032T To: linuxers(a)mm.ilug-bom.org.in
055 Subject: Re: [ILUG-BOM] How to detect a power failure?
038 Date: Mon, 18 Feb 2013 01:22:24 +0530
exim -brw jtd(a)mtnl.net.in
I am fairly sure nothing has changed in the local mail server since 2005.
Mails to the list were just fine until it came back online after the last
HELP. I hate mail servers.