Jared Lyvers <[EMAIL PROTECTED]> writes:
> is there an easy way to do this system wide w/ cron or just manually?
> Or does each user have to run it?
There is no easy way except, of course, just letting the default
behavior happen, where TMDA cleans up after itself (back to your
original question!). If, for some reason, that just won't work
(why?), you can put the explicit command in each user's crontab.
For occasional cleanups of the sort you first asked about, logging in
the user and running tmda-pending -bd -O14d works fine. Otherwise,
automatic cleanup is by far the easiest method.
> ie. can tmda-pending be given a directory to purge through or could I
> put this into a bash script and then use something like
> find /home/* -type d -name .tmda -exec tmda-pending {} \;
Since many of TMDA's defaults use the '~' expansion mechanism to refer
to the user's $HOME directory, running tmda-pending as root would mean
all of these references would refer to root's $HOME. If every
filename that TMDA references is, instead, explicitly configured as an
absolute path in each user's config file, then you could run
tmda-pending as root with the '-c' flag, specifying each user's config
file (one at a time, of course).
To set this up you would need to identify each path that uses '~'
(from Defaults.py) and place an explicit, absolute path in each user's
config. Configuring the system this way can be a real pain.
Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users