title: How to execute a script at the start and end of every application in Linux?
body: <p>I am trying to log the applications that a user opens/closes in the Linux (any distro) OS. Is there a way to execute a script (Java,Python,etc) everytime an application (like firefox,etc) is opened and closed?</p>