On Thu, Sep 9, 2010 at 8:27 PM, Aryeh Friedman <aryeh.fried...@gmail.com> 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)

    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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to