From owner-freebsd-questions Tue Dec 18 1:44:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk-systems.com (hawk-systems.com [161.58.152.235]) by hub.freebsd.org (Postfix) with ESMTP id F3F9137B419 for ; Tue, 18 Dec 2001 01:44:47 -0800 (PST) Received: from cr159591a (CPE00a00cc12af5.cpe.net.cable.rogers.com [24.102.18.54]) by hawk-systems.com (8.11.6) id fBI9ikI82613; Tue, 18 Dec 2001 02:44:46 -0700 (MST) From: dave@hawk-systems.com (Dave) To: Cc: "Jon Molin" Subject: RE: retrieve and delete remote file via ssh Date: Tue, 18 Dec 2001 04:48:26 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-reply-to: <3C1F004F.9F6A7A3A@resfeber.se> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG perfect, took that train of thought... ssh user@host "mv file file.lock" then retrieve, remove, while the server rebuilds and continues to add to file you know its time for a break when the simplest of things boggle your mind, thanks Dave >-----Original Message----- >From: jmo@mail2.resfeber.se [mailto:jmo@mail2.resfeber.se]On Behalf Of > >ssh user@host "rm $file" > >should do it. > > >/Jon > > > >Dave VanAuken wrote: >> >> Am looking to do the following, can't put my finger on it. >> >> Goal: >> scp or rsync file(s) from remote server, then remove them from remote server >> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message