Solved

Using NT-Printer from Unix

Posted on 2000-04-13
6
370 Views
Last Modified: 2013-12-06
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
0
Comment
Question by:olka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:sbuehrle
ID: 2711792
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.
0
 

Expert Comment

by:hpman
ID: 2711987
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.  
0
 

Author Comment

by:olka
ID: 2712000
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?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:hpman
ID: 2712096
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).  
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2714617
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).
0
 
LVL 2

Accepted Solution

by:
ish earned 100 total points
ID: 2842172
Exceed should have nothing to do with this, unless you are printing screen captures of your Xwindows.

The UNIX box need the print queue (and drivers installed) pointing to the NT box in question.  The NT Box needs to be running SIMPLE TCP/IP PRint Services.

Once the queue is set, and the dirviers installed, if the NT box is RUNNING and the shared printer hasn't been restricted, you should be able to print to it.

My NT guys are allways restricting the NT boxes here to "AUTHENTICATED USERS"  and since I'm coming from the UNIX box I'm NOT an AUTHENTICATED user.

We had to connect the printer to the network directly so that we could spool thru to it from the UNIX side of the house.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question