cancel
Showing results for 
Search instead for 
Did you mean: 

Printing a file

jason fournier
Occasional Contributor

Printing a file

Hello,
I am having a small problem printing a file on my linux machine. I copied the file from a unix server. The problem is that the file has flags in it that are used by the printer,
^[(s7B (bold on) for example.Somewhere between the file and the printer, the ^[ gets changed for ?? so the flag now looks like ??(s7B. This does not get recognised by the printer as a flag and therefore gets printed as regular text.

Does anybody have any ideas on how to fix this problem? (the Tags have to stay in)

Thanks
Jason Fournier
Just your average guy
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Printing a file

Those appears to be pcl escape codes for the printer. If you don't have a print spooler or the right printer you are going to have a hard time printing that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Printing a file

Also what are you using as your print spooler? LPRng? Cups?

Are you printing to a spool on the local machine, or on a remote machine (either Windows or Unix/Linux) ?

I've onlys een this sort of thing happen when printing to a 'Remote' printer attached to a Windows PC using NT/2K/XP's "UNIX Printing" stuff.
One long-haired git at your service...
Francisco J. Soler
Honored Contributor

Re: Printing a file

Hi Jason.

Have you checked the file in your linux box to see if flags are already there? Perhaps the copy from the unix to linux is not good.

Is the printer pluged into the linux box?
If so, you can try
cat file > /dev/lp0
be sure the device is ok, it could be lp0, lp1...

Frank.
Linux?. Yes, of course.