1833137 Members
3634 Online
110051 Solutions
New Discussion

Re: lp command options

 
Stuart Edeal
New Member

lp command options

Our organization is sending print output from HP-UX to a Windows Printer via lp. (We have defined the remote printer via SAM and are using lp to send output to the printer.)

All is well, when we have the setting enabled on the printer on Windows 2003 Server.

However, when we disable this setting, the standard lp command does not work.

After speaking with Microsoft, they have indicated that the problem is due to the fact that 'Print Services for Unix' service on Windows sets the print data type when it sends the document to the spooler. When we disabled the Advanced Print Features for that printer, we have forced it to accept only jobs that have the RAW datatype. If it can't process the job it throws it away.

We currently have only two options: 1) to enable advanced printing features on the Windows Printer, or 2) find a way to dictate the print format within the 'lp' command when sending the job.

Do you have any advice for indicating print formatting, when submitting jobs from HP-UX 'lp' command to the Windows 2003 print spooler?

I am looking for an equivelant to the
"lpr -S -P -o l " command from a Windows platform.

Is there an easy option or parameter I could use?

Thanks

Stuart

3 REPLIES 3
Rita C Workman
Honored Contributor

Re: lp command options

I'm no Windows Print Spooler expert....

so let me ask the simple question:

Is this Windows printer by any chance connected to the network with a Jetdirect card????

Rita
Dave Johnson_1
Super Advisor

Re: lp command options

We send all print jobs to the printer directly as they all have jetdirect cards in them. The printer takes care of processing a job from which ever server has a job ready at any given time. Windows printouts come out inter-spersed with UNIX printouts.

Hope this helps,
-Dave
Bill Hassell
Honored Contributor

Re: lp command options

Windows and some flavors of Unix use BSD style printing which means that formatting always takes place in the local machine and the result is then sent to a print server. However, HP-UX (and some other flavors of Unix) use the SysV lp spooler which sends only the raw print job to the server along with options. Windows knows nothing about lp -o options so they are ignored. lpr does not exist on HP-UX, but is instead emulated with a simple script in /usr/bin. There is no easy solution except to use only HP LaserJet printers with HP JetDirect LAN cards and not use any Windows print server at all.


Bill Hassell, sysadmin