This is the command monitor that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
monitor - 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.
port Use the specified port number.
The following exit values are returned:
zero (0) Successful completion.
non-zero (!=0) An error occurred.
Use monitor online using onworks.net services