/* xosd-tail.c by Digital Ebola */ /* You must have xosd for this to work, get it at www.freshmeat.net */ /* Greets to vac, teeceep, and super */ #include #include #include #include "xosd.h" #define FONT "fixed" int main(void) { FILE *unf; char ack[170]; xosd *osd; osd = xosd_init (FONT, "LawnGreen", 3, XOSD_top, 0); if((unf = fopen("syslog", "r"))!=NULL) { while(fgets(ack,sizeof(ack),unf)!=NULL) { xosd_display (osd, 0, XOSD_string, ack); sleep(5); } } xosd_uninit(osd); fclose(unf); return EXIT_SUCCESS; }