On this page
Execute Commands at Logout
Introduction
It can sometimes be useful to run commands when logging out, such as disconnecting a VPN or similar tasks.
Usage
Here’s an example that you can put in your .profile
file:
trap cmd 0
Last updated 11 Dec 2009, 21:21 +0200.