I understood that. What I am saying is that instead of installing the RPM
or finding logrotate on the net, you can use midnight commander (program
name 'mc') to go into the rpm as if it is a directory and manually copy
the files you want. (I am making the assumption that you have a RH cd
somewhere.)
Although if you know bash scripting it is quite trivial to do:
for i in *.1; do
mv -f `echo $i | sed 's/1/3/'` `echo $i | sed 's/1/4/'` # mv *.3->*.4
mv -f `echo $i | sed 's/1/2/'` `echo $i | sed 's/1/3/'` # mv *.2->*.3
mv -f $i `echo $i | sed 's/1/2/'` # mv *.1->*.2
mv -f `echo $i | sed 's/.1//'` $i # mv *->*.1
done
Of course you also have to kill syslogd, run this, and restart it.
--
She has an alarm clock and a phone that don't ring -- they applaud.
On Sat, 24 Jun 2000, David Smith wrote:
> On Sat, 24 Jun 2000, "Paul Sack wrote:
> > In RH it is /usr/sbin/logrotate (and /etc/logrotate.conf). If you have
> > midnight commander installed, you can go into the logrotate package and
> > extract just what you want from it. Unless RH made some modifications to
>
> > On Sat, 24 Jun 2000, David Smith wrote:
> > > from RH 6, and now I can't find how the logs are rotated. Does
> > > anybody know? I can't find a script or a crontab entry anywhere.
> > > Does slackware not rotate the logs?
>
> No, no, sorry. I'm on Slack 7 now, not RH. I went *from* RH *to*
> Slackware. Bad wording on my part.
>
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]