Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2010 10:03:48 -0700
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How to disallow logout
Message-ID:  <AANLkTi=wL0gNgirCmJ=%2BSoqZSaTE%2B2MH1fE0MEjHQT1n@mail.gmail.com>
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, Sep 9, 2010 at 8:27 PM, Aryeh Friedman <aryeh.friedman@gmail.com> w=
rote:
> 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. =A0 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... =A0so 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)

    This is probably a silly suggestion, but as I see it there is
another option: a periodic script which goes and commits the files if
the sessions go away (via crontab, or whatever). In particular, this
would solve the problem if one of the sessions you had quit, but you
had more than one session open to the machine.
    Of course if you didn't care about the contents of the files you
could take a different approach and employ something similar in
.login, but it doesn't sound like that's what you want to do either,
and that wouldn't solve the multi-session problem...
Cheers,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=wL0gNgirCmJ=%2BSoqZSaTE%2B2MH1fE0MEjHQT1n>