Date: Fri, 10 Sep 2010 15:34:45 +1200 (NZST) From: Atom Smasher <atom@smasher.org> To: Aryeh Friedman <aryeh.friedman@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to disallow logout Message-ID: <1009101529500.2000@smasher> In-Reply-To: <AANLkTim4OG2124dVtEHFSR06c7sF-nnMA7bgfPApTywk@mail.gmail.com> References: <AANLkTim4OG2124dVtEHFSR06c7sF-nnMA7bgfPApTywk@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Sep 2010, 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. ===================== what i would do... make an alias or function of "logout" and/or "exit" in the init file that's parsed when the shell starts. alias it to a script or assign it to a function that does what you need. if your shell supports logging out with ^D (or any other keybinding) then the details may be shell-specific, but the idea would be to either disable it, or bind it to the script. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man." -- George Bernard Shaw
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1009101529500.2000>