[comp.soft-sys.andrew] ez fails to tidy up

cameron@cs.flinders.oz.au (Cameron Humphries) (10/23/90)

Hi.

ez appears intent on leaving files down in /tmp.

These files have names of the form <filename>.n

This would be ok except that the permissions are open for everyone
to read the file. So it is not feasible to use ez for confidential  
correspondence. 

Asking users to set their umask is one possibility.

Any suggestions?

-Cameron
Cameron Humphries
Discipline of Computer Science                 email: cameron@cs.flinders.oz.au
School of Information Science and Technology   phone: +61 +8 201 2874
The Flinders University of South Australia     fax  : +61 +8 201 2904

nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (10/23/90)

The .n files in /tmp are not standard.  Sounds to me like you've got
printing slightly misconfigured, as the .n files are temporary nroff
files produced during the printing process.  -- Nathaniel

wdc@ATHENA.MIT.EDU (Bill Cattey) (10/24/90)

To be a little more detailed:

Look at your formatcommand and printcommand.  Section 4 of README tells
about setting these, as does the 'preferences' help file.

The preferences I use are:

*.formatcommand: cat /tmp/%s.n | eqn | /usr/bin/troff -Tpsc -t |
*.printcommand: psdit | /usr/ucb/lpr; rm -f /tmp/%s.n

As you can see, formatting creates a .n file in /tmp, while printing
removes it.

If the README file is bit for bit exactly correct (which it often is)
then the default print command is at fault, not you.  The default print
command doesn't have the '; rm -f /tmp/%s.n' in it to remove the
temporary file.

Probably the simplest way to fix this is for you to create a file named
global.prf in your ${ANDREWDIR}/lib directory.

In that file put the line:

*.printcommand: psdit | /usr/ucb/lpr; rm -f /tmp/%s.n


----

I hope this helps.

-wdc

tpn+@ANDREW.CMU.EDU (Tom Neuendorffer) (10/31/90)

Excerpts from mail: 23-Oct-90 Re: ez fails to tidy up Bill
Cattey@ATHENA.MIT.E (851)


> If the README file is bit for bit exactly correct (which it often is)
> then the default print command is at fault, not you.  The default print
> command doesn't have the '; rm -f /tmp/%s.n' in it to remove the
> temporary file.


By default, the print command will remove the .n files. Note the
following from the print.c source file.

#define print_PRINTCOMMAND "/usr/ucb/lpr -n -Ppp; rm -f /tmp/%s.n; rm -f
/tmp/%s.n.dvi "  /* if overridden by the profile 'printcommand' entry,
the troff file (usually /tmp/%s.n) won't be automatically deleted . */

So my guess is that you have either a local or global preference or init
file that is improperly overriding the default in the source without
including the rm -f /tmp/%s.n command.

	Tom N.