crontab logging
Florian Lohoff
flo at rfc822.org
Sun Jan 16 16:12:36 CET 2000
On Sun, Jan 16, 2000 at 03:57:48AM +0100, Ralf Heiringhoff wrote:
> Moin,
>
> Ich hab hier so nen kleines Problem mit dem ich mich jetzt schon die letzten
> Monate herumschlagen habe (mal mehr mal weniger :) ...
>
> Also ich habe einen Crontab Eintrag, der mir jede Minute die loadavg in ein
> Logfile schreibt.
> So das laeuft auch alles 100 % nur moechte ich gerne gerade diesen Eintrag
> aus meinem Syslog haben da es mir dort einfach nur das Syslog voll muellt wie
> ich finde.
>
> Wie bekomme ich jetzt diesen einen Eintrag daraus bzw. wie bekomme ich cron
> dazu das nicht ins Syslog zuloggen sondern z.B. nach /var/log/crontab-other??
* * * * * echo `date` `cat /proc/loadavg` >>/var/log/loadavg
Oder so aehnlich ...
Flo
--
Florian Lohoff flo at rfc822.org +49-5241-470566
... The failure can be random; however, when it does occur, it is
catastrophic and is repeatable ... Cisco Field Notice
More information about the Linux
mailing list