• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D29-Jun-2020822 1814

notifyH A D09-Aug-2021281 1612

simple_notify.plH A D29-Jun-2020904 3726

sql_notify.plH A D01-Sep-20213.9 KiB12379

README

1This directory contains two simple examples of UNIX notification daemons
2written in Perl.  Both daemons require installing the
3Net::Server::Prefork module, located in this directory.
4
5The Perl script 'simple_notify.pl' simply logs mail notifications--it
6shows the simplest possible handler.
7
8The Perl script 'mysql_notify.pl' also logs the notification, but in
9addition it looks up the username in a DB table in order to get additional
10information about the user. This could be used, for example, to get a
11user's instant messaging address from a database in order to send a
12notification message.  'mysql_notify.pl' requires a file /etc/notify
13that contains three lines: the DSN, username, and password to connect
14to the database.
15
16The shell script 'notify' is a sample init.d script for
17starting/stopping the perl daemon.
18