[net.notes] Notes Output Redirection

herndon@umn-cs.UUCP (Robert Herndon) (04/05/84)

#N:umn-cs:8100002:000:1200
umn-cs!herndon    Apr  4 15:28:00 1984


[I think not, therefore I am not.]

  The notes documentation claims notes examines an environment
variable named "PAGER" when printing out notes and responses.  This
is unfortunately a fib, or at least misleading.  "PAGER" is only
examined when dumping out the help message.
  My problem is this:  I have some notes files whose contents I want
to either:
     a) keep crypted
     b) keep as nroff input
and I would like to be able to decrypt/nroff these files on demand
when reading the notes.  My thought was to set PAGER to 'nroff -me',
or 'crypt', but this doesn't work at all.  It would also be nice
if I could make it something complex like 'nroff -me | more' so as
not to lose the page-at-a-time feature of notes.  Is there a simple
way to do this?  Setting "MAILER" to nroff seems to work, but is
pretty awkward, in that notes dumps me in the editor, et cetera, and
then runs the note through.
  Considering the notes I've seen in this notesfile, I think some
general mechanism/gross feature might be in order.  A good solution
to this problem would ease the necessity for saving notes to files
to unrotate offensive jokes.
  Any suggestions?

					/R
				Robert Herndon
				umn-cs!herndon

rpw3@fortune.UUCP (04/08/84)

#R:umn-cs:8100002:fortune:8300008:000:476
fortune!rpw3    Apr  7 21:25:00 1984

Mark Stein here at Fortune hacked in a quick change to notes to allow
saves ("s") to a pipe if the first character of the save-file name was "|".
I think you'll find it straightforward to do.

Now I just "save" those jokes to the file "|r13" (a shell script).
And to print a note, save it to "|lpr".

Rob Warnock

UUCP:	{ihnp4,ucbvax!amd70,hpda,harpo,sri-unix,allegra}!fortune!rpw3
DDD:	(415)595-8444
USPS:	Fortune Systems Corp, 101 Twin Dolphin Drive, Redwood City, CA 94065

donn@hp-dcd.UUCP (04/10/84)

At least some versions of notes support the use of | and ^ as "pipe"
symbols.  You could type

	| nroff | more

(^ takes the whole note string, | only the current "page").

As far as rot13 jokes -- try the % key, or failing that:

	| tr ... | more

Donn Terry
HP Ft. Collins
{hplabs,csu-cs}!hp-dcd!donn