Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site redwood.UUCP Path: utzoo!dciem!nrcaero!pesnta!amdcad!fortune!rhino!redwood!rpw3 From: rpw3@redwood.UUCP (Rob Warnock) Newsgroups: net.notes Subject: Re: lpr for notes Message-ID: <141@redwood.UUCP> Date: Sat, 26-Jan-85 07:06:27 EST Article-I.D.: redwood.141 Posted: Sat Jan 26 07:06:27 1985 Date-Received: Mon, 28-Jan-85 02:11:08 EST References: <40000004@trsvax.UUCP> Organization: [Consultant], Foster City, CA Lines: 16 Back at Fortune Systems, someone (Mark Stein?) had hacked in a simple straightforward solution to your "lpr" request: If the "filename" of a "save" starts with a "|", the save is piped to the following command. So, "s |lpr" prints it, "s|print -h foobar" runs it through "pr" first and puts a title "foobar" on it, etc. (Berkeley "print" :== "pr !* | lpr") I don't know how much code is involved, but it's basically a "popen()" instead of an "fopen()". (Remember to skip over the "|".) Rob Warnock Systems Architecture Consultant UUCP: {ihnp4,ucbvax!dual}!fortune!redwood!rpw3 DDD: (415)572-2607 USPS: 510 Trinidad Lane, Foster City, CA 94404