Re: user-level logrotate?
From: Derrick 'dman' Hudson (dman_at_dman13.dyndns.org)
Date: 10/02/03
- Previous message: Jeff: "Expect Script Loop issue"
- In reply to: Henrik Christian Grove: "Re: user-level logrotate?"
- Next in thread: John M Flinchbaugh: "Re: user-level logrotate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 2 Oct 2003 11:38:46 -0400 To: debian-user@lists.debian.org
On Thu, Oct 02, 2003 at 10:25:24AM +0200, Henrik Christian Grove wrote:
| "Monique Y. Herman" <spam@bounceswoosh.org> writes:
|
| > I have a few applications that create log files in my home directory. Is
| > there a (simple) way to use logrotate as a normal user?
|
| I see no reason that logrotate should require special privileges
Correct.
| for any but reading and writing it's state file, so try something
| like:
|
| logrotate -s ~/private-logrotate-status ~/private-logrotate.conf
Put this in your personal crontab ('crontab -e'). My (personal)
crontab entry looks like
# rotate personal logs
@daily /usr/sbin/logrotate --state $HOME/etc/logrotate.status $HOME/etc/logrotate.conf
It works well.
-D
-- If Microsoft would build a car... ... Occasionally your car would die on the freeway for no reason. You would have to pull over to the side of the road, close all of the car windows, shut it off, restart it, and reopen the windows before you could continue. For some reason you would simply accept this. http://dman13.dyndns.org/~dman/
-- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: stored
- Previous message: Jeff: "Expect Script Loop issue"
- In reply to: Henrik Christian Grove: "Re: user-level logrotate?"
- Next in thread: John M Flinchbaugh: "Re: user-level logrotate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|