Re: How to show system messages
- From: Carlos Toledo <sarek22 casal upc es>
- To: gtk-list gnome org
- Subject: Re: How to show system messages
- Date: Tue, 30 Jan 2001 14:19:26 +0100 (CET)
On Sun, 28 Jan 2001, Jeff Shipman wrote:
> You can:
>
> 1) Check the timestamp of the file
>
> 2) Use 'tail -f filename' and it will constantly
> update whenever something is added.
>
> Jeff "Shippy" Shipman E-Mail: shippy nmt edu
> Computer Science Major ICQ: 1786493
> New Mexico Institute of Mining and Technology
> Homepage: http://www.nmt.edu/~shippy
>
> On Sun, 28 Jan 2001, Carlos Toledo wrote:
>
> > Hello, i want to ask you more than a problem with gtk, a problem with C.
> > I want to do a messages console that shows the file /var/log/messages but
> > I have the problem that this file grows with all messages and when I have
> > read it, there is more information on this file. How can I do to know when
> > is new information whithout read the file all time or looking the size?
> >
> > Thanks for your help
> > (sorry for my horrible english)
> >
> >
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >
>
>
First, thanks to people that answer my mail . I saw the tail code and it
sleeps 1 second and looks if the file size is equal (always the fisrt
solution is the best :) . I will do the same, it's more fast than call
other functions.
Saludos.
Carlos.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]