Listen for pages via snpp, and send pages via modem
sendpage [\s-1OPTIONS\s0] [recipient ...]
Start sendpage in \*(L"daemon mode\*(R" where it will start all the Paging Central queues and wait for pages to be delivered. When sendpage runs as a daemon, it must be running as the 'sendpage' user as specified in the sendpage.cf file.
Display all the pages waiting in the Paging Central queues.
Try to expand the \*(L"recipient\*(R" name, using the recipient aliases specified in the configuration file.
Shutdown the running sendpage daemon and all its children. If a Paging Central is in the middle of delivering a page, it will finish up and exit as soon as its current page is handled.
This will send a \s-1SIGHUP\s0 to the master daemon. When the master gets the \s-1SIGHUP\s0, it will re-read its configuration file, and restart all the Paging Centrals. It will wait for any busy Paging Centrals to finish before continuing.
This displays the state of the running daemons: Running or Not running. If a pid file is stale (the file exists, but the process doesn't), it will mark that pid as \*(L"Stale\*(R".
This will send a \s-1SIGUSR1\s0 signal to either the master daemon, or, if the Paging Central is specified, just that Paging Central in particular. When the master gets a \s-1SIGUSR1\s0, it will send it to each of the running Paging Centrals. If the Paging Central is not busy, it will immediately start a queue run.
Read the configuration file \s-1FILE\s0 instead of the default /etc/sendpage/sendpage.cf
Display a summary of all the available command line options.
Turn on debugging (like \*(L"debug=true\*(R" in /etc/sendpage/sendpage.cf)
Show that the sent page is coming from \s-1USER\s0. Default is the current user.
Send the given \s-1MESSAGE\s0 instead of reading text from stdin.
Do not notify the 'from' user about the status of the page.
Sendpage can run as the delivery agent, or as a client to insert a page into the paging queue. For the various command-line arguments, the idea here was to use sendmail-style arguments where I can, not to fully implement every option that sendmail has. I just want the learning curve of sendpage to be small for people already familiar with sendmail.
Default location for sendpage.cf, which holds all the configuration information for sendpage, including Paging Central definitions, recipients, and various other behaviors.
Default directory for all the Paging Central queues and pid files.
Default directory to keep the UUCP-style device locks.
Kees Cook <[email protected]>
Oh, I bet this code is crawling with them. :) I've done my best to test this code, but I'm only one person. If you find strange behavior, please let me know.
sendpage is free software; it can be used under the terms of the \s-1GNU\s0 General Public License.
perl\|(1), kill\|(1), Device::SerialPort\|(3), Mail::Send\|(3), Sendpage::KeesConf\|(3), Sendpage::KeesLog\|(3), Sendpage::Modem\|(3), Sendpage::PagingCentral\|(3), Sendpage::PageQueue\|(3), Sendpage::Page\|(3), Sendpage::Recipient\|(3), Sendpage::Queue\|(3)