From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9e2d431ace2e835 X-Google-Attributes: gidfee84,public From: FTP Administrator Subject: Re: DU 4.0C printing to HPLaserjet 5 Date: 1998/02/09 Message-ID: <34DEBE55.41C6@ftp.unina.it>#1/1 X-Deja-AN: 323362040 Content-Transfer-Encoding: 7bit References: <19980129213200.QAA00833@ladder02.news.aol.com> <34dddc1b.201442@news.netcologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: C.D.S - University Federico II of Napoli - Italy Newsgroups: comp.unix.osf.osf1 Matthias Kring wrote: > > On 29 Jan 1998 21:32:08 GMT, kshan91819@aol.com (KShan91819) wrote: > > ... > >printer drivers. Now when I print from Unix I get this kind of output: > > > >this is line one. > > this is line two. > > The release notes of Digital UNIX 4.0B (and the Documentation as well) > know this problem which arises for example with HP printers. > > The solution is to only send pre-formatted Postscript or PCL files to > the printer; or just run a mini sed script to convert LF into CR LF. > The problem is that with remote printer the 'if', 'of' 'xf', etc. won't work. I can print plain ASCII on my HP LaserJet with a simple trick I learnt on the Linux Printing-HOWTO. Look at my /etc/printcap lj5m|lp4:\ :lp=/dev/null:\ :sh:\ :lf=/usr/adm/lp4err:\ :sd=/usr/spool/lpd4:\ :if=/usr/lbin/lj5ps-remote: lj5m-remote|lp5:\ :lp=/dev/null:\ :sh:\ :rm=lj5m:\ :rp=raw:\ :sd=/usr/spool/lpd5: This way if I want to print a PS/PCL, I address straight the remote printer, using 'lj5m-remote'. No filters, all clean. If, instead, I want to print ASCII, I use the 'fake' local printer lj5m. As you can see, the lj5m entry is a trick to tell the system that printer is local, so the filter /usr/lbin/lj5ps-remote will work. In my case the filter lj5ps-remote is a simple shell script: #!/bin/sh /usr/lbin/ln03rof | lpr -h -Plj5m-remote but you put what you prefer. Of course, you have to put an entry lj5m-remote in your /etc/hosts! If you have problem setting all this, e-mail me. Massimo Gais ---- FTP Administrator C.D.S. - University "Federico II" of Naples (Italy) "640K ought to be enough for anybody." -- Bill Gates, 1981