--- notifyme-1.4.3.orig/config_file.c +++ notifyme-1.4.3/config_file.c @@ -43,7 +43,7 @@ if(p == s++) return 1; *val = realloc(*val, (p - s) * sizeof (char) + 1); - if(!*val) errx(1, __FUNCTION__ ": cannot allocate memory. Exiting."); + if(!*val) errx(1, "%s: cannot allocate memory. Exiting.", __func__); bzero(*val, p - s + 1); strncpy(*val, s, p - s); return 0; @@ -185,7 +185,7 @@ while (**s && !valid_sep(**s) && **s != '\n') (*s)++; t = calloc(1, sizeof *t); - if(!t) errx(1, __FUNCTION__": Cannot allocate memory. Exiting."); + if(!t) errx(1, "%s: Cannot allocate memory. Exiting.", __func__); /* for compatibility with older config file */ if(type == GLOBAL_TYPE) globals[type-1].flags = ~0 & ~CENTER_MSG; --- notifyme-1.4.3.orig/notifyme.1 +++ notifyme-1.4.3/notifyme.1 @@ -0,0 +1,44 @@ +.TH NOTIFYME 1 "MARCH 2004" Linux "User Manuals" +.SH NAME +notifyme \- notifies a user then other one logs in +.SH SYNOPSIS +.B notifyme [-c +.I conf +.B ] [-C] [-l] [-q] [-h] [ +.I USERNAME +.B ] ... +.SH DESCRIPTION +.B notifyme +is a console utility that stays in a background +(it isn't a daemon but it doesn't block terminal) and prints +a message if a specified login and/or logout occurs. . + +When program starts it reports number of logins and minimum +idle time of the users that you specified in a resource file. . + +In the config file ($HOME/notify.rc by default) +you can specify (extended regular expressions are allowed) +usernames, hostnames and terminals that should be monitored, +optional messages that will be displayed and other options +(beep, report logouts etc.). +.SH OPTIONS +.IP "-c config-file" +Specify the configuration file where usernames, hostname and +terminals which will be monitored. +.IP -C +Force notifyme to display messages on the center of the screen. +.IP -l +Do not report when the user logouts. +.IP -q +No beep when a message appears. +.IP -h +Show help index. + +.SH FILES +.I ~/notify.rc +.RS +Indication of usernames, terminals and hostnames to be +monitored. + +.SH AUTHOR +Michal Suszycki <mike@wizard.ae.krakow.pl> \ No newline at end of file