> Is there a way to print from UNIX workstation to a printer which is set > up for NT.
Here's instructions for setting it up for HP which uses lp printing. If you use lpr printing, the Unix side will be different as will the options you pass to lpr.
Dan Mercer
On the NT side you have to install and configure TCP-IP services. Go to the help. In the Index, look up TCP/IP. Double-click on "Printing" and then on "To configure a computer running Windows NT for TCP/IP Printing" and follow the instructions. They will show you how to start the LPR service for the NT. Make sure the NT printers you want to connect to have simple names (no included spaces). Next, on the HP side, use SAM to install the Printer as a Remote BSD printer giving the internet name of the host and the printer name. I haven't tried it but I wouldn't be surprised if the printer name was case insensitive.
Finally, to print to the thing.
To print an unformatted file (the NT device driver will format it):
lp -d printer file
To print formatted files, you must pass the appropriate lpr options to lp. You do that by prefacing them with the BSD marker (caps required). For instance, to print a Postscript file to a Postscript printer:
lp -d printer -o BSDo file
To print a formatted (non-Postscript) file (PCL, for example):
lp -d printer -o BSDl file ^(small L)
To see what the other lpr options are, consult the man page for lpr which I include below. Do not use the "lpr" command HP provides. It is a shell script and a fraud and does not correctly encapsulate or translate lpr options to lp options.
lpr(1)
SYNOPSIS
lpr [-Pprinter] [-#num] [-C class] [-J job] [-T title] [-U user] [-i [numcols]] [-1234 font] [-wnum] [-cdfghlnmprstv] [name ...]
documented on: 2000.12.19