/* * Prints stdin to syslog - I think there is already a util to do this * Kees Cook 1997 */ #include #include int main() { char buf[128]; openlog("syslogit",0,LOG_DAEMON); while (fgets(buf,128,stdin)) syslog(LOG_INFO,buf); closelog(); }