From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OnecS-000297-MN for garchives@archives.gentoo.org; Mon, 23 Aug 2010 21:31:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C911E074E; Mon, 23 Aug 2010 21:31:08 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 64B02E074E for ; Mon, 23 Aug 2010 21:31:08 +0000 (UTC) Received: from weird.localnet (p4FF04EE7.dip.t-dialin.net [79.240.78.231]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id AAE774A8290 for ; Mon, 23 Aug 2010 23:31:07 +0200 (CEST) FCC: imap://wonko@mx.virtyou.com/Sent X-Identity-Key: id9 Message-Id: <201008232330.48408.wonko@wonkology.org> Date: Mon, 23 Aug 2010 23:30:36 +0200 From: Alex Schuster X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Disable fcron logging References: <201008211525.35115.wonko@wonkology.org> <201008221226.28193.wonko@wonkology.org> <0059EB40-8530-454B-B092-ECA76E9F42A2@stellar.eclipse.co.uk> <201008222339.48911.wonko@wonkology.org> In-Reply-To: X-Length: 2723 X-UID: 176 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Archives-Salt: f62392d9-2749-44ff-b943-c5ecaec67301 X-Archives-Hash: b9b263148303475c50ca90e182d34a09 Stroller writes: > On 22 Aug 2010, at 22:39, Alex Schuster wrote: >> Stroller writes: >> >>> The script with which you reply is missing the sleep 60 loop. >> >> No, it's only the script that outputs the drive's state. It's called >> by ~/.kde4/Autostart/hdstate: >> >> #!/bin/bash >> >> while : >> do >> /usr/local/sbin/hdstate >> ~/log/hdstate.log >> sleep 10 >> done > > You wrote to the list telling us that you were running a script from > cron every minute, and that this was causing your log file to fill up > with messages from cron. > > That is what I replied to. Yes, I know. You had the good idea of simply putting the script into a loop, and I actually followed your advice by now. When I posted my first script in response to yours, I just wanted to show how I got the relevant information in a more convenient format, using hdparm and hddtemp, than using the direct output of smartctl. Just in case someone else also likes this. Of yourse the outer loop was missing, but I did not bother to add this trivial addition just for the posting here. It's just the script I was already using in cron. And later in the posting I mentioned that the script itself should be run in a loop instead of cron, also because I could decrease the update interval. Sorry, I probably should have made clear that the original question was sort of solved. > Please do not move the goalposts halfway through the thread, and make > it about something else unrelated. That is the perfect way to annoy > people who are trying to help you. I'm sorry about this, I did not mean to annoy anyone. But I still do not really seewhat the problem is. You had the idea to do this without cron, and so I did. Well, I forgot a 'thank you' for the loop idea, this is true. Sorry again. Your ideas were appreciated as always. Wonko