From owner-freebsd-stable Thu Aug 13 10:30:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA02925 for freebsd-stable-outgoing; Thu, 13 Aug 1998 10:30:30 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02885 for ; Thu, 13 Aug 1998 10:30:23 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail.siemens.de (salomon.siemens.de [139.23.33.13]) by david.siemens.de (8.9.1/8.9.1) with ESMTP id TAA15896 for ; Thu, 13 Aug 1998 19:29:54 +0200 (MET DST) Received: from curry.mchp.siemens.de (daemon@curry.mchp.siemens.de [146.180.31.23]) by mail.siemens.de (8.9.1/8.9.1) with ESMTP id TAA24139 for ; Thu, 13 Aug 1998 19:29:54 +0200 (MET DST) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.8/8.8.8) id TAA26333 for ; Thu, 13 Aug 1998 19:29:50 +0200 (CEST) From: Andre Albsmeier Message-Id: <199808131729.TAA14703@internal> Subject: Can lpr/lpd remove the symlink AND the source file? To: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Date: Thu, 13 Aug 1998 19:29:45 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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