Friday, 19 July 2019

bash - Attaching some code to session start and end in Linux


I'm trying to execute some code (let's call it login.java) when I log in and out of my linux machine. Is there any way to do this? I'm looking for perhaps a way to trigger the code? I've thought of just putting it in my .bash_login but preferably the code would launch on normal login, not when I start my terminal.



Answer



Take a look @ this posts


http://synapse.wordpress.com/2007/03/24/run-a-script-on-startup-shutdown-in-linux/


http://www.linuxfromscratch.org/hints/downloads/files/execute-session-scripts-using-kdm.txt


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...