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
lines?
(idea is to detect power failures, while powered by a "dumb" UPS unit - one
that cannot communicate with the a computer. Any other
solutions/suggestions?).
Binand
> 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.
Best Regards,
Rigved Rakshit
Hello,
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.
Regards,
Rony.
-----Original Message-----
From: Rajeev R. K.
Here you go.....
mount | grep -q home
HOMESTATUS=$?
mount | grep -q backup
BACKUPSTATUS=$?
if [ $HOMESTATUS -eq 0 -a $BACKUPSTATUS -eq 0 ]; then
echo "You got both man, do your thing..."
exit 0;
else
echo "Error -- either home or backup missing -- Or is it BOTH !%$!!@#%!"
exit 1;
fi
Regards
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.........
Regards,
Rony.
Dear All,
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.
Regards,
Priyanka
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
<http://marc.info/?l=linux-raid&m=136163159413360&w=2>
-- Arun Khan
host mm.ilug-bom.org.in [74.207.228.67]: 450 4.7.1 <mail.sparc.net>: Helo
command rejected: Host not found
exim4 -Mvh 1U7A6g-0002Re-Q9
1U7A6g-0002Re-Q9-H
Debian-exim 102 102
<jtd(a)mtnl.net.in>
1361130062 0
-helo_name debamd.localnet
-host_address 192.168.0.16.43515
-host_name debamd.sparc.net
-interface_address 192.168.0.8.25
-received_protocol esmtp
-body_linecount 46
-max_received_linelength 81
XX
1
linuxers(a)mm.ilug-bom.org.in
234P Received: from debamd.sparc.net ([192.168.0.16] helo=debamd.localnet)
by mail.sparc.net with esmtp (Exim 4.69)
(envelope-from <jtd(a)mtnl.net.in>)
id 1U7A6g-0002Re-Q9
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
And
exim -brw jtd(a)mtnl.net.in
sender: jtd(a)mtnl.net.in
from: jtd(a)mtnl.net.in
to: jtd(a)mtnl.net.in
cc: jtd(a)mtnl.net.in
bcc: jtd(a)mtnl.net.in
reply-to: jtd(a)mtnl.net.in
env-from: jtd(a)mtnl.net.in
env-to: 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
years outage.
HELP. I hate mail servers.