zero (0)
Successful completion.
Receive logging information from lpd
monitor [-u]
[-t]
[port]
The monitor program is a template for a printer status monitoring program. It will open the specified TCP and/or UDP port, and then wait for accounting or other information to be sent. It prints this information on it standard output.
-u
wait for connections on the UDP port.
-t
wait for connections on the TCP port.
portUse the specified port number.
The following exit values are returned:
zero (0)
Successful completion.
non-zero (!=0)
An error occurred.
15 releases since Debian 1.2 (Rex); the text changed 5 times.
-u since Debian 2.2 (Potato).
-N until Debian 1.3 (Bo);
-Q until Debian 1.3 (Bo);
-S until Debian 1.3 (Bo);
-T until Debian 1.3 (Bo);
-a until Debian 1.3 (Bo);
-c until Debian 1.3 (Bo);
-d until Debian 1.3 (Bo);
-h until Debian 1.3 (Bo);
-p until Debian 1.3 (Bo);
-q until Debian 1.3 (Bo);
-s until Debian 1.3 (Bo).