Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 1998 19:29:45 +0200 (CEST)
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Can lpr/lpd remove the symlink AND the source file?
Message-ID:  <199808131729.TAA14703@internal>

next in thread | raw e-mail | index | archive | help
Lets assume the following scenario:

We have a big file that is the output of an application which
has to be printed. After printing, the file is no longer needed,
and for this reason we want the file to get automatically 
removed after printing.

1. We do a "lpr -r -Pprinter filename"
   ==> The file is removed after printing

2. We do a "lpr -s -r -Pprinter filename"
   ==> The symlink is removed after printing, the file remains

While doing 1. the file has to be copied which might be 
unacceptable if it is very large. By using 2. we avoid
the copying but the file remains and has to be removed
manually.

Would it make sense to invent a new option for lpr which
allows symlinking AND removal of the symlink together with
the input file?

Or is this already possible with -STABLE's lpr/lpd and I
am simply to stupid...

What do you think?

Thanks,

	-Andre

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808131729.TAA14703>