[net.notes] lpr for notes

dan@rna.UUCP (01/12/85)

> Ray, something I'd like to see added to notes is the ability to print a
> note (or response) directly to the line printer (via lpr command).  Presently
> one has to either use nfprint, or save the note out to a file, then print
> it manually.  It would be nice if there were:
> 	l    lpr the present note/response
>	L    lpr the base note and all responses
>
>Any chance of that being added some time in the future?

All notesfiles systems I've seen (except for the oldest) include a command to
pipe the current note to a program. On some, it is '|', on others you use the
save command, 's', followed by a shell command line beginning with '|'. In any
case, its an easy hack. Just do a popen() when you see a '|' in response to the
save command. Then pipe the note to lpr or whatever...

					Dan

ron@trsvax.UUCP (01/21/85)

Ray, something I'd like to see added to notes is the ability to print a
note (or response) directly to the line printer (via lpr command).  Presently
one has to either use nfprint, or save the note out to a file, then print
it manually.  It would be nice if there were:
	l    lpr the present note/response
	L    lpr the base note and all responses

Any chance of that being added some time in the future?


	         .... memo from the desk of Ron Light
		               Tandy Systems Software
		                    Fort Worth, Texas
   ... {convex!ctvax,microsoft,ihnp4!sys1}!trsvax!ron
	          ... cu-arpa.trsvax!ron@Cornell.ARPA

mark@uoregon.UUCP (mark) (01/23/85)

What about '|' and '^' (pipe note through command).  That's how I get a
hard copy of a single note.

mark

rpw3@redwood.UUCP (Rob Warnock) (01/26/85)

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

dave@rocksvax.UUCP (01/29/85)

I usually say '|lpr' to print out a note.  I have never used nfprint.  If
you want page numbers just pipe the note through 'print' instead of 'lpr'.

Dave

arpa: Sewhuk.HENR@Xerox.ARPA
uucp: {allegra,rochester,amd,sunybcs}!rocksvax!dave