From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 11 02:21:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7891F106566B for ; Sat, 11 Sep 2010 02:21:25 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 38E608FC0C for ; Sat, 11 Sep 2010 02:21:24 +0000 (UTC) Received: by iwn34 with SMTP id 34so3219490iwn.13 for ; Fri, 10 Sep 2010 19:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=TF2CmX86sATkLIyh2db0E0wnS9gS5T8q5ftsq1SXJ7I=; b=AJw4vtk5KLDYY+lc5isLcHfIiI9wlCiyHQ+/zJ1GkEzwqKNpHopzjXSO/qemrqoIJb AQfOwRD9gA+aBCupPZ2XoCUcjZwPUkUXNR+yKuF2LHQgGl9sEjt17upc20h34SWGZPJQ w0YvXyKqcmowf6zG9VfNIbXVjlUbYP5UmYF0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=CAQ/xgJTUsL8PpwC7O4Yjbs8/IpC8FjSe9v4dbtbnardnUOVX7LAvUPdfm2zTCVhT0 NzcH99JcpW0jZrsTZe37alk7o1RgeTduxVqHvXDRL8+ru2rW5qPffEL8Rxb8Zb03IGMl 7F2CT6OT4fnv4MYviIKc0vvgCzWYyTfR7K5N8= Received: by 10.231.33.129 with SMTP id h1mr1608952ibd.140.1284171684484; Fri, 10 Sep 2010 19:21:24 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-137-20.dsl.klmzmi.sbcglobal.net [99.181.137.20]) by mx.google.com with ESMTPS id g31sm2950364ibh.10.2010.09.10.19.21.23 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 19:21:23 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C8AE7A2.1090802@DataIX.net> Date: Fri, 10 Sep 2010 22:21:22 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100908 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Aryeh Friedman References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: How to disallow logout X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 02:21:25 -0000 On 09/09/2010 23:27, Aryeh Friedman wrote: > I have a directory that must not exist on logout and rm -rf is not > sufficent to do it because the contents need to be processed by our > version control system. The real life scenario is our version > control system stores the repo for a given project encrypted but for > techinical reasons it needs to keep the checkouted files in plain text > (they are all in the same dir) and I want to *NEVER* have the plain > text checkouted files in my dir when I logout, *BUT* instead of just > deleting it I need to check them in... so how do I make my .logout so > if the file exists it will not exit and give a error saying that dir > is still there? (minor but unimportant side effect of the version > control system is the dir will have a different name everytime it is > made but always the same prefix) > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" trap '/path/to/your_wrapper_script.HERE' 2 Should execute the contents of that script on every logout. Whether that script is a line by line action or a fully qualified script with functions to call different actions are up to you. Good luck, -- jhell,v