From owner-freebsd-questions@FreeBSD.ORG Fri Aug 4 16:54:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DE3716A57B for ; Fri, 4 Aug 2006 16:54:14 +0000 (UTC) (envelope-from spock@dwinner.net) Received: from outbound-mail-39.bluehost.com (outbound-mail-39.bluehost.com [70.98.111.193]) by mx1.FreeBSD.org (Postfix) with SMTP id C904943D4C for ; Fri, 4 Aug 2006 16:54:13 +0000 (GMT) (envelope-from spock@dwinner.net) Received: (qmail 19019 invoked by uid 0); 4 Aug 2006 16:54:09 -0000 Received: from unknown (HELO box122.bluehost.com) (67.106.44.122) by mailproxy2.bluehost.com with SMTP; 4 Aug 2006 16:54:09 -0000 Received: from [216.113.237.29] (helo=[10.10.6.20]) by box122.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1G92w4-0007Ly-GF for freebsd-questions@freebsd.org; Fri, 04 Aug 2006 10:54:08 -0600 Message-ID: <44D37BAE.7000800@dwinner.net> Date: Fri, 04 Aug 2006 12:54:06 -0400 From: DW User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {731:box122.bluehost.com:dwinnern:dwinner.net} {sentby:smtp auth 216.113.237.29 authed with dwinner@dwinner.net} Subject: .bash_logout and shutdown -- need ideas 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: Fri, 04 Aug 2006 16:54:14 -0000 Hi all, Have a bit of an issue here: Just started using a .bash_logout script to handle doing my unison commands whenever I logout at end of day so I don't forget to sync my local homedir to my server before I head home. Works fine as long as I just do a "# exit" when I'm done. But more often than not, I do a "# sudo shutdown -p now". The problem with that though, is that the shutdown process runs as root, and just drops the system, and I'm never actually getting logged out as much as booted out. So my .bash_logout doesn't run, and thus no unison unless I remember to run it manually first. Any ideas on how to work around this sitch? Thanks, DW