From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6b8beabaffaf97d6,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-10 10:15:52 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!noc.near.net!chaos.dac.neu.edu!narnia.ccs.neu.edu!gbcacm From: gbcacm@ccs.neu.edu (Peter Sherwood) Newsgroups: comp.unix.osf.osf1 Subject: How to print headers using lpr? Date: 10 Oct 1994 16:48:31 GMT Organization: College of Computer Science, Northeastern University. Message-ID: <37br8v$fvq@narnia.ccs.neu.edu> NNTP-Posting-Host: denali.ccs.neu.edu X-Newsreader: TIN [version 1.2 PL2] Under OSF/1 3.0, I'd like to have 'lpr ' print a file to the queued printer, an HP-4, as follows: Set the printer to a non-standard font and pitch (I can supply the byte stream to do this). Paginate, with a header at the top of each page containing the full path and filename, the file revision date/time, and the current date/time. Wrap lines longer than the page width. The closest I can find is a utility 'pr', which does page headers, but is a separate program. I'd consider writing an "input filter" ('if' in printcap) if I could find some documentation on how to do so. ----------------------------------------------------------------------------- Peter Sherwood (617) 332-8880 (voice) (617) 332-1675 (fax) gbcacm@ccs.neu.edu -----------------------------------------------------------------------------