I'm mounting a truecrypt container via the command line (i.e.
truecrypt file dir). Is there any way to have truecrypt automatically unmount the container after a given amount of inactivity in
Truecrypt can't do this but something like the following would accomplish what you are trying to do:
Save this somewhere,
I would definitely incorporate some type of notification so you have a chance to close open files. Of course you could get rather elaborate and try to incorporate a loop that kills with SIGTERM (and then does SIGKILL if it doesn't respond in a timeframe) all processes listed by