From: Stroller <stroller@stellar.eclipse.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Disable fcron logging
Date: Sun, 22 Aug 2010 20:00:52 +0100 [thread overview]
Message-ID: <0059EB40-8530-454B-B092-ECA76E9F42A2@stellar.eclipse.co.uk> (raw)
In-Reply-To: <201008221226.28193.wonko@wonkology.org>
On 22 Aug 2010, at 11:26, Alex Schuster wrote:
> Stroller writes:
>>
>>
>> #!/bin/bash
>> while true
>> do
>> for drive in a b c d
>> do
>> /usr/sbin/smartctl /dev/sd$drive --whatever >> /var/log/hdstate
>> done
>> sleep 60
>> done
>
> I use hdparm and hddtemp:
>
> for hd in sda sdb sdc sdd
> do
> ...
> echo "$hd: $state $temp"
> done
The script with which you reply is missing the sleep 60 loop.
> ...
> The problem with cron is that I get those cron logs I do not like, and
> that the update time of 60 seconds is a little long. Running the
> script in
> a loop, started in .kde4/Autostart, would be better, but as a user I
> have
> no permission to call hdparm or hdtemp. I do not want to be part of
> the
> disk group, and when using sudo I would get the logs by sudo I
> wanted to
> avoid. So now I SUID'ed hdparm and hddtemp, changed the group to
> wheel and
> disabled execution for others. cron problem not solved, but
> workarounded.
Running a script which contains `while true ... sleep 60` will cause
only a single logging action. You can run it as root at startup using /
etc/conf.d/local.start and have the file world readable.
Stroller.
next prev parent reply other threads:[~2010-08-22 19:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 13:25 [gentoo-user] Disable fcron logging Alex Schuster
2010-08-21 13:43 ` Alan McKinnon
2010-08-23 22:12 ` Alex Schuster
2010-08-24 6:49 ` Alan McKinnon
2010-08-21 19:26 ` Stroller
2010-08-22 10:26 ` Alex Schuster
2010-08-22 19:00 ` Stroller [this message]
2010-08-22 19:50 ` Stroller
2010-08-22 21:39 ` Alex Schuster
2010-08-22 22:18 ` Mick
2010-08-24 13:31 ` KDE and hdparm (was: Re: [gentoo-user] Disable fcron logging) Alex Schuster
2010-08-25 9:54 ` [gentoo-user] Re: KDE and hdparm Alex Schuster
2010-08-25 19:14 ` Mick
2010-08-30 16:38 ` KDE and hdparm (was: Re: [gentoo-user] Disable fcron logging) Mick
2010-08-23 18:25 ` [gentoo-user] Disable fcron logging Stroller
2010-08-23 21:30 ` Alex Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0059EB40-8530-454B-B092-ECA76E9F42A2@stellar.eclipse.co.uk \
--to=stroller@stellar.eclipse.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox