From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f8622cb796505583 X-Google-Attributes: gid1164f8,public From: Eric Osborne Subject: Re: adressing printer trays with lp?? Date: 1998/07/13 Message-ID: <35A9AC40.79E1@digital.com>#1/1 X-Deja-AN: 370921611 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation - Marlboro, MA Mime-Version: 1.0 Reply-To: eosborne@columbus.rr.com Newsgroups: comp.sys.dec Wolfgang Armbruster wrote: > > is there a chance to direct a printout to a specific laserjet upper or > lower tray by using the "lp" command? > -- > Wolfgang Armbruster | wolffsed@dinx.de Yep. If you're using the System V style lpsched and lp command, you can build back end output filters out of shell scripts that do essentially anything you want. LP has a generic hook for passing customized options via the -o flag - you would do something like '-o tray2' to pass the option. LP won't interpret the thing at all - it takes all of the -o flags, bundles them and they end up getting passed to the interface program for your printer, which can either ignore the flags or do something with them. You must, of course, know how to send a command from the interface program to the printer to do the tray selection. Hope that helps. Eric D. Osborne Senior Consultant Compaq Computer Corporation ------------------------------------------------------------------- The above comments reflect my own opinions, and should not be construed to represent any official statement from my employer.