General discussion

Locked

Printing from Unix to IP printer

By Gerry C ·
I have just been running a project to convert an enterprise from Token Ring to Ethernet. In the token ring network users printed to printers shared from local PCs using a product called 'NIPRINT'. This had an option set which converted from 'Unix DOS' to 'Ascii'. These users are using Dynix.

Now I have networked the printers using external jet direct boxes and have set up new queues on the Dynix box using the IP addresses. However, now whenever users try to print system reports the pages come out with just a header on the first page and the rest of the pages are blank. Printouts from the application running on the Dynix machine work ok!

Is there a setting in the queue setup to fix this? Is it a translation problem or a line-feed or similar problem?

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

To clarify this:

When they try to print from dynix from the OS prompt (e.g. when trying to reprint a report from the etc\spool folder) the pages are blank.

When they print from the application running on the Dynix machine the printouts are ok.

Collapse -

Printing from Unix to IP printer

by jo_ash In reply to Printing from Unix to IP ...

Make sure you're using the right printer model - some HP printers will appear to work with any HP printer model, but only work properly with their own model.

Have you looked at cups (common unix printing system)?

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

Poster rated this answer

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

I don't think the printer model was used when setting up the queue (which was done through a menu system using the 'menu' command.)

Collapse -

Printing from Unix to IP printer

by Shanghai Sam In reply to Printing from Unix to IP ...

Your problem is lack of carraige control characters. If there is not any carraige control in a text type file, and you print it thru DOS/Windows, the OS will place carraige control/line feed characters in the print stream, based upon the setup of your default printer.

Most printers interpret the first byte, and others the first 2 bytes to be carraige control characters).

In UNIX/LINUX, the data is essentially passed unchanged, with no carraige control added. Setting the printer type in the queue is essentially pointing it to a character set/bitmap table appropriate for that type of printer.

The application is working because it is putting carraige control characters in the print stream.

When you print from the OS level, your first byte is being read as carraige control, and as it is really not, confuses the printer.

The best solution, if it is justified, is a UNIX output management package.

The second is to set up a Windows or Novell print server PC.

If theamount of printing does not warrant all that work or expense..(in most cases UNIX level reports are usually for IT type folks):

Add 2 blank spaces at the beginning of each line of a report file for reports....

For listing things such as systemfiles,use awk/sed to produce a temp print file with two blank columns
To print /etc/hosts

cat /etc/hosts|awk '{print " " $1 $2}'|lp -dxx -

The cat pipes the hosts file into awk
The double quotes indicate literal spaces, $1 and $2 are field1 and 2 of the file. The - in the lp command indicates input from the awk command, previous to the pipe.

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

Poster rated this answer

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

Answer 2 sounds along the right lines - I am currently using an NT server as a print server with the queues pointing to the IP addresses of the jet direct boxes. How do I configure the queue in Dynix to use this (which is preferable)? Or do I need to connect the printer into the PC and print to the IP address of the PC (which I don't really want to do)

Collapse -

Printing from Unix to IP printer

by Gerry C In reply to Printing from Unix to IP ...

This question was closed by the author

Back to Linux Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums