Re: How to show system messages
- From: Guy Harris <gharris flashcom net>
- To: Paul Davis <pbd Op Net>
- Cc: gtk-list gnome org
- Subject: Re: How to show system messages
- Date: Mon, 29 Jan 2001 21:32:34 -0800
On Mon, Jan 29, 2001 at 02:52:48PM -0500, Paul Davis wrote:
> pretty pointless. tail -f just runs something like this:
>
> while (1) {
> now = get_current_time ();
> if (modification_time (file) > last_time) {
> show_recent_data (file);
> }
> last_time = now;
> sleep (1);
> }
Or just
while (1) {
for (;;) {
read from file;
if (at end of file)
break;
write the stuff that was read;
}
sleep (1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]