Some print servers simply print whatever data is presented to
them. For example, the HP Jet Direct and many other print servers
work that way. See /SCOFAQ/scotec7.html#getnetcat
for more on that.
LPD style printers require more of a protocol. Carsten Hammer
has presented a simple shell script that provides that
The netcat Carsten uses in this script is the Linux version that
has many more features than the simple SCO binary referred to
above, but either could be used with this script- just leave out
the flags that aren't used if you have the simpler version.
If you like you can even use a simple shell/awk-script to build
a lpr like client arount netcat.