Does anyone have an idea how to run a script when the user logs out.

I tried puting the command in the .bash_logout file, but it doesnt work.

Thanx

Janez