Re: How to show system messages



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]