Discussion Locked

Unix PS Printing to NT Server Queues

0 helpful
36 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Server OS: NT4 or W2K
Print Driver: HP CLJ4500DN Postscript
Server Name: PS1
Queue Name: PS-Trans
Tray 1: Manual Feed (disabled in driver config)
Tray 2: Transparencies
Tray 3: Letter (disabled in driver config)

Document Default settings inprint queue all point to Tray 2(transparencies), so do all device driver settings. Tray 1 & 3 medias are disabled.

Trying to get Unix clients to use a MS-based server for printing transparencies. They create a remote print queue on their Unix workstation, pointing to Server: PS1 Printer: PS-Trans.

ASCII print jobs come out on transparency media, like they should, but PostScript print jobs come out on plain paper from Tray 3! It appears that the PS file passes through the queue to the default tray on the printer not to the tray selected by the driver. Changing the default tray on the printer itself is not an option.

All NT clients printing to that queue generate Transparencies by default.

Any ideas how to get Unix PS print jobsto come out on transparency media in Tray 2 using the NT server queue?

36 replies

by stillatit

This will vary according to your flavor of unix.

There are two logical places to look:

1. Find where the Postscript print code is being generated. That program may be putting a tray select into the PostScript code (or may be able to put a trayselect into the code).

2. When the file is being piped out through lp or lpr or whatever, a driver is called and options can be invoked. /etc/qconfig (on AIX systems your location will vary) allows some options. When you track down the actual drivers, there may be additional places for options.

Good luck.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by bhrdwh

Hi,
Find where the Postscript print code is being generated. That program may be putting a tray select into the PostScript code (or may be able to put a tray select into the code).
When the file is being piped out through lp or lpr or whatever, a driver is called and options can be invoked. /etc/qconfig (on AIX systems your location will vary) allows some options. When you track down the actual drivers, there may be additional places for options.
akash

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by wearsmanyhats

I'm assuming that the printer is not networked with a JetDirect card or for some reason you can't print directly from the Unix clients to the HP printer. Otherwise, using lpr to print directly to a networked printer should work for postscript documents if the printer can handle postscript. As to using lpr to select a specific printer tray, perhaps the lpr service on the printer itself can be configured to a specific paper tray, depending on your printer model, I've never looked into that myself.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by maz1980

Microsoft has included TCP/IP printing service on NT 4.0. To install it, go to Network Properties>Service on control panel then click "Add". On the UNIX client, set the lpr to the NT IP address and printer name. Read the manual of lpr to get more options.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by cavedweller

Here is an alternate solution. For several years I have "shared" Hp LaserJet printers with JetDirect interfaces between my SunOs/Solaris and Win-NT print queues. I set up a print queue on a Solaris server and all my Unix machines print through it and another print queue on my NT server. The JetDirect interface does a good job working with both servers.

Also (even if you use a single NT print server), make sure you have the exact ppd (postscript printer description) file installed on your Unix machines. The ppd file maps printer options to postscript commands. To use advanced features such as changing paper types or selecting alternate feed trays you need to have a ppd file written specifically for your printer. Generic ppd filesonly cover the basic features.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by bhrdwh

I had the same problem, I used the HP Jetdirect software & thigs worked fine ever since. In fact we've been running 5 HP Laserjet printers on a single HP JetDirect Server.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by curious_george

This is a simplified version of my problem. The problem extends to multiple printer devices that are not HP and therefore do not use the Jetadmin software. Additionally, there are about 1000 print devices.

by tsrl

u can try using samba..
in any of the NT system shared the printer..
from the unix system route the ps print jobs to the shared printer..but u have to install samba on the unix system..

revert back...

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by ncong

You had HP PrintDriver installed.

1. From PC server (queue machine) choose add new printer
2. Choose local printer
3. Choose create new port
4. choose lpr port
5. once you're in lpr port, you can choose machine name or IP address to recognize over the network for this printer (e.g. ps1)
6. There are options ps or raw, choose either one and test see if it works

7. from UNIX try to print a test page

THAT'S IT

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by estebandelatorre

lpr is quite not a very complete way i order to set printer properties, I would prefer the driver itself.
Regarding to your question, why ps jobs do not get printed into the default tray???
Reason 1: Different paper sizes! There is an option under the printer default settings (from the printer panel) which allows you to automatically match the paper size and type. If for some reason tray=2 =a4 paper, and the job is printed with letter, the printer will select the paper matching size for you!
Reason2: There?s may be another option, that is named "replace letter-A4", that is to said, if I print letter and have a4 paper, perform the change for me!
Reason3: If the tray paper is defined as a paper type or quality, like "transparency" and the job does not match or include this requierement, the printer will always print on standart paper, in your case, Tray 3

Hope it helps!!!

by estebandelatorre

These printer porpoerties can be changed from the printer panel, with the jetadmin software of by the driver at print time.
The info included with the job (the printer file) should specify all the necesary options for that job, otherwise, the printer will default to the ones it has configured.

You can also check this by performing a standart word PS job to file (under windows, using the printer driver) and the same file printed under unix (using lpr), and compare those files.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by budgiesoft

If using lpr, use the -I[tray] option.

The default tray will not be used if the paper size is not set properly on the tray itself. There is a knob inside the tray of some models to notify the firmware of the paper size in the tray.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by mad max

See Microsoft Knowledgebase Q150930 this references how to change the way that NT addresses the LPR printer. There are a number of suggestions on registry settings that force windows to stop interfering in the translation.

see also Q132460 Q124735 Q168457(least relevant)

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by duskos

Hi,

It's been long since I worked on Unix, but I remember solving some similar problem.

There should be a place in lpr or lp command in Unix where you can specify file to be sent to printer spooler before sending actual print data. Well, set this preamble data to send correct escape sequence to select correct tray on printer.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by picturethat

I have had simular problems and found some middle ware that allows me to do almost anything. RPM makes software that runs on the nt server, it is a lpd print server. Just set it up and print to it, you can create ques and print to any tray or even take advantage of other options not supported in unix. I have it working several places.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by penguinsrule

I'd just use the (tcpip) lpd service on the unix machine and have it point to the remote printer on the NT box.

Xerox makes a product called Paris that does all this. you create the lpd queue, then an NT queue with the desired attributes on thent machine, and then a paris queue with the desired forms. You can enable postscript or whatever. I've done the same thing, but I'm using openvms instead of unix. It works sweet.

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

by maxwell edison

The a2ps utility converts ASCII to two-column PostScript by default, and encloses the text in boxes with headers indicating date, time, filename and page number. You also get a line saying "Printed by username from node". You can override the defaults; see the man pages.

a2ps is useful if the printer can only accept PostScript. You can use it to produce different output formats (e.g., "2-up", where two pages of your file are shrunk to fit on a single sheet). It provides options to add items like line numbers, user, file, and system information to the output. The command syntax is:

% a2ps [global options] files [positional options] files

where global options apply to all files being printed, and positional options are applied only to the files found in the remainder of the command line (with the exception of -H as noted in the man page which only applies to the next file).

Here is an example where we pipe the output of a2ps to flpr (-p indicates portrait mode):

% a2ps-p file1 | flpr -q wh10w_lw

------------

See these links for the full description and links for download the utilities:

http://www.fnal.gov/docs/UNIX/unix_at_fermilab/htmldoc/rev1997/uatf-59.html

http://www.fnal.gov/cd/main/printing.html

(REMOVE SPACES from the pasted URLs.)

Good luck,

Maxwell

by curious_george

I'm sorry I have still not found an acceptable solution to the problem, the project has been abandonded due to technical merits. Though many answers were intelligent and helpful(while others should have remained silent because they obviously can notread), none solved the problem, therefore I simply can not award my points. Thank you for your contribution though.

This discussion is closed to new replies.