pcheck [-s SERVER, --server=SERVER] [-p PORT, --port=PORT] [-t TIMEOUT, --timeout=TIMEOUT] [--help] [--version] [-l, --get-load | -m MAILBOX, --get-mailbox=MAILBOX]
This command is used for checking the proper function of the pcheckd. It will send a UDP request to the pcheckd running on the machine server (default: 127.0.0.1) on port port (default: 50110). It will wait for timeout seconds for an answer. The answer is printed on stdout.
There are two types of requests: The mailbox request (-m) will ask the server about the state of the named mailbox and will output it ('0 no mail', '1 mail', '2 new mail', or '3 load too high'). The load request (-l) will ask the server for the load avarage for the last minute.
The output of the command is the answer to the request returned by the server. It has the general format '+OK some message' if the request was successfull or '-ERR error message' if some error occured on the server side.
Get help on parameters.
Print version information.
Host name or IP address of POPCHECK server.
UDP port for POPCHECK service on server.
Timeout in seconds when waiting for answer.
Return load avarage of server.
Name of mailbox to check.
Successful, 'no mails' when using option -m.
Successful, 'mails available' when using option -m.
Error connecting to server, other system errors or "-ERR" msg from server
Error while parsing the command line.