#include #include // void openlog( char *ident, int option, int facility) // void syslog( int priority, char *format, ...) // void closelog( void ) main(int argc, char *argv[]) { if (argc < 2) { printf("Usage: %s \"MESSAGE\"\n", argv[0]); printf("Put entry into syslog\n"); return 1; } openlog(argv[0], LOG_PID, LOG_NOTICE); syslog(LOG_NOTICE,argv[1]); closelog(); return 0; }