Link to home
Start Free TrialLog in
Avatar of olka
olkaFlag for Germany

asked on

Using NT-Printer from Unix

Hy folks,
I have a Unix server (HP-UX) and a lot of NT-Clients which have install Exceed to work with the HP-system. On each NT-Client a local printer is installed. In the software, which the user is running via Exceed on the HP there is a "print"-button.
Is it possible (and if so, how) to send the print-output to the local NT-printer?

waiting the solution
olka
Avatar of sbuehrle
sbuehrle

Without knowing what application your talking about, or what action the
"print" button is supposed to take, its unlikely anone can give you an specific help. Here are some general suggestions.


In a unix graphical app, you usually define an action for the print button.
Its often defined to call the "lp" command. You may need to read the
documentation for your application to learn how to define what action the
print button takes.


Can you print from the unix command line using the lp command? You probably need to get that working first. First you need to install a print deamon on the NT box to accept print jobs. Then you configure a remote printer on the HP boxes using SAM or the lpadmin command.
On NT, you need to turn on TCP/IP Print Server in the services.  Also, there is a registry entry that must be changed.  Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\LPDSC\Parameters, you need to add a value.  The name is SimulatePassThrough (case specific) and set it to DWORD.  The value should be set to 1.  Reboot and the NT system is ready.  On the UNIX side, like sbuehrle said, you set up a remote printer with the system name=to the name of the NT box and the remote printer name=the share name of the printer.  This will get you printing from the command line to the NT printer.  
Avatar of olka

ASKER

That I have to use the lp-command is rather clear. The problem is how to redirect the output (lp -d$PRINTER) to the right printer. How can I install this print daemon on the NT-client. And after that I can use this NT-printer on the unix-site?
Do I have to install samba on the unix-site?
The print daemon on the NT client is the TCP/IP Print Server and the registry entry stated in my last comment.  If you follow those directions, you should be able to print from a command prompt on the HP system to the printer connected to NT. Type the command lp -dPrintername filename(where Printername is the name that you defined in SAM or lpadmin as the local(UNIX) printer and filename is a valid/printable file).  
I believe that you'll have to set up a Unix print queue for each of the NT attached printers. You may have to do this with Samba as HP-UX uses a SYSV printing system that I know has problems talking to a Linux LPR/LPD print system and the NT service is an LPR/LPD type also. The next problem will be in the type of printers attached to the NT boxes. If they happen to be Postscript it should work fine, otherwise you may have problems finding print filters. And if they are "winprinters", aka Host Based Printers", you are certainly going to have problems as the jobs must be processed by the NT driver. One possible solution might be the "Redirection Port Monitor" (http://www.cs.wisc.edu/~ghost/redmon/redmon.html).
ASKER CERTIFIED SOLUTION
Avatar of ish
ish

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial