1834689 Members
2046 Online
110069 Solutions
New Discussion

Printing Question

 
Stephen Young_1
Occasional Advisor

Printing Question

Hi,

I have a V-Class running HP-UX 11.0 and need to use a printer that is connected to a PC.
Anyone got any tips as I am having trouble getting it working.
I know the IP address of the PC and the name of the printer.

Thanks in advance
6 REPLIES 6
Rita C Workman
Honored Contributor

Re: Printing Question

If the printer is a local connection ONLY to the PC...than you can not get to it from your UNIX server. The printer would have to be networked so that the server could direct the output to that device IP. The printer would have to have been set up so that the server knew it was a printer.

Now coming FROM the PC you can login to access the server...then the user might get the report (file) and print to it's local printer. But you could not initiate the print from the server..unless you network the printer and assign it an IP.

Just a thought,
Rit
Bill Hassell
Honored Contributor

Re: Printing Question

PC printing is a bag of worms...

To start with, PC (MS Windows) do not enable RFC 1179 printing by default. This is called lpr in most WinXX versions and is simply not available at all in older versions.

However, once you get lpr working on the PC, you won't like the stairstep output from ASCII files. This is because there is no format conversion done for remote printing and in HP-UX, ASCII files are: text LF text LF, while PCs and printers expect: text CRLF text CRLF...

You can fix this by remembering to print all ASCII files to the PC printer by using:

ux2dos ASCII_filename | lp -dPCprinter_name

Note also that none of the -o options will be processed by the PC, so options like -olandscape or -o2 will be ignored. If the printer can be converted to a network printer using HP's JetDirect products, you can eliminate the PC completely and print directly to the printer, plus all of the -o options will work.


Bill Hassell, sysadmin
K.Vijayaragavan.
Respected Contributor

Re: Printing Question

Hi,

I am not sure about how far this concept is going to meet your requirement.

If you are going to vt100 and vt220 emulation mode at the terminal emulatore s/w installed at your PC and if you are planning to login to your server from that PC and take print then,

Create a script file "print" with this content.


echo ^[[5i
cat $*
echo ^[[4i

Note: to get" ^[ " on the screen you have to press the keys " Ctrl , V & Esc" . should not type directly.

make it executable useing command "chmod u+x print"
use the command "print filename" to take print out

-Vijay
"Let us fine tune our knowledge together"
Sanjay_6
Honored Contributor

Re: Printing Question

Sandip Ghosh
Honored Contributor

Re: Printing Question

Hi Stephen,

I had also faced this problem. Look at this thread. I had posted the resolution over there to solve this problem.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7e9ff77de2bd611abd50090277a778c,00.html

Sandip
Good Luck!!!
Chris Vail
Honored Contributor

Re: Printing Question

If the PC in question has queue on a Win printserver (any print server) that queue can be printed to from Unix. In that case, lpr
services have to be enabled on the print server, but it is set up on the unix side just like any other printer. That is using 3 computers to print one job, but that is the Windows Way!


Chris