RE: Reduce size of online.log?
Posted in 2000
Mainly 'cos logfile are seen as a Unix level problem. Run the following script weekly via cron and the logs will be maintained on a four weekly cycle #! /bin/ksh LOG=<online.log> cd $INFORMIXDIR test -f $LOG.2 && mv $LOG.2 $LOG.3 test -f $LOG.1 && mv $LOG.1 $LOG.2 test -f $LOG.0 && mv $LOG.0 $LOG.1 cp $LOG $LOG.0 cp /dev/null $LOG chmod 644 $LOG Paul Watson WF Software Ltd Tel: +44 1436 674729 Fax: +44 1436 678693 www.wfsoftware.com/informix > -----Original Message----- > From: Pankaj [mailto:pankaj@punks.demon.co.uk] > Sent: Tuesday, August 22, 2000 09:21 > To: informix-list@iiug.org > Subject: Re: Reduce size of online.log? > > > > Pardon my curosity. > > But why is this question for the SCO news group. From the > mail he seems to be > asking about the online.log. > > > Cheers > > Pankaj > > remove (_at_) to reply wrote in message > <16c4qs81ir7r855d36empjvnveeld528th@4ax.com>... > |On Mon, 21 Aug 2000 14:52:27 GMT, jwz1@my-deja.com wrote: > | > |>I noticed in the /informix directory on my SCO server, that > the file, > |>online.log, continues to grow. Is there a way to reduce the > size of the > |>file so it doesn't continue to get larger? > |> > |>Thanks, > |> > |>Joel > |> > |> > |>Sent via Deja.com http://www.deja.com/ > |>Before you buy. > | > |This is the question for SCO news group - I think comp.sco.unix.misc. > |There you can find question about reducing all LOG files > like /usr/adm/syslog > |and others. > |If you cann't find question and answer I will sand you > utility PRUNE that will > |help you. > | > |Nebojsa > >