On Tue 23 Sep 2008, Clint Adams wrote:
> On Tue, Sep 23, 2008 at 04:07:07PM +0200, Paul Slootman wrote:
> > $ for i in 1 2 3 4 5 6 7 8 9; do savelog -q -l -d -c 5 ps1; sleep 2; done; 
> > ls -1 ps1*
> 
> There's no rotation capability with -d or -D.  Perhaps this should be

Ugh :(
Surely that wouldn't be too difficult to do? Something like:

ls -t1 $base.* | tail --lines=+cycles | xargs --no-run-if-empty rm

with some appropriate checks built in... Without rotation, I don't
really see the point of savelog, I might as well roll my own in my
scripts.


> documented, and perhaps -c should cause a fatal error if -d or -D is
> specified.

I fully agree, the current behaviour sucks; giving an error when a
non-supported combination of options is given is the least that could be
done. The documentation will of course also need to be fixed.


Paul Slootman



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to