From owner-freebsd-questions@FreeBSD.ORG Sun Dec 10 13:39:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B7DC16A403 for ; Sun, 10 Dec 2006 13:39:28 +0000 (UTC) (envelope-from pigskin_referee@yahoo.com) Received: from web34404.mail.mud.yahoo.com (web34404.mail.mud.yahoo.com [66.163.178.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 614BC43C9E for ; Sun, 10 Dec 2006 13:38:17 +0000 (GMT) (envelope-from pigskin_referee@yahoo.com) Received: (qmail 6214 invoked by uid 60001); 10 Dec 2006 13:39:27 -0000 Message-ID: <20061210133927.6212.qmail@web34404.mail.mud.yahoo.com> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ZXzmBq2JOI0jZ2at8csv1oMIA4p9vszN5Ik+9UzOOuFNRKZeyXRCSkeqJGGe72j3Mdv79rZ2W9pGWzvTedVQEL46P0yWxvEMgtTe+q8tAvULTmgEYJgKeaXzfsA38Oim5iyaaNS6fqfUEgOkItDklf3aoa1SCXE8syKYxFn0V4M=; X-YMail-OSG: yunHdtUVM1nGHZyutv59przAKIeFiMkrqO5p2GZ2AIZY4DuD0N7Kxp7KBjiyjz.OCg-- Received: from [67.189.184.224] by web34404.mail.mud.yahoo.com via HTTP; Sun, 10 Dec 2006 05:39:27 PST Date: Sun, 10 Dec 2006 05:39:27 -0800 (PST) From: White Hat To: FreeBSD Users Questions MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Atomic Update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2006 13:39:28 -0000 I am not sure what the correct procedure is to do an atomic update. Scenario: 1) Download database-1. This database is going to replace an identically named database. Since I cannot shut down the program that is using this database, what would be the best way to insert the new database. I was thinking that I could use the 'mv' command as opposed to 'cp', but I am not sure. -- White Hat pigskin_referee@yahoo.com ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited