From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,11609b709547d63f X-Google-Attributes: gidfee84,public From: schroedj@ub.uni-marburg.de (Juergen Schroeder) Subject: Re: Printing landscape to remote printer Date: 1997/03/14 Message-ID: <5gb1lc$dpa$2@surz03fi.HRZ.Uni-Marburg.DE>#1/1 X-Deja-AN: 225405555 References: <332691FF.293C@landisgyr.com> <3327C552.5272B8FA@computing-services.ox.ac.uk> Organization: HRZ Uni Marburg Newsgroups: comp.unix.osf.osf1 Pete Ford (peter.ford@computing-services.ox.ac.uk) wrote: : Slavisa Lukic wrote: : > : > I have installed a deskjet 1600CM printer as text. I made the entries in : > the printcap according to the suggestion made in some previous messages : > of this news group. I have defined two printers (raw+text). : > : > It seems that everything functions well, except that some options of the : > lpr command are not accepted. I have tried the -Olandscape by the text : > come still portrait. : : The -O option (alongs with some others) is not necessarily supported on : other vendor's lpd systems - it's a Digital thing, so if the remote : printer is not on a Digital system it's unlikely to know what to do. : I'm currently working on a distributed printing system and have : encountered these problems, although in my case I'm using a Digital : Alpha to do the printing and adding code to the standard BSD lpd source : to give it the extra functionality when passing jobs to the Alpha's lpd : (i.e. the reverse of what you want and much easier!). I don't know how : the Digital lpd actually implements things like orientation (-O) and : paging (-K)... The lack of filtering by printing remote is usual in most unix (lpd) types. This can't be elegant overided by a old but not well known trick: make a printqueue which print raw to the remote printer make multiple printqueues for the features you want have eg one called landscape this should have this entries in the printcap: :if=/usr/local/daemon/filter/input_filter_landscape:\ :lp=/dev/null:\ make the filter input_filter_landscape (echo "here the esc-sequences for initialising the printer & landscape mode" cat - ) | lpr -Praw thats all you can make this queues if you want on only one machine and print remote to this machine. No fiddeling with lpd source code. Juergen