Run script on login with ssh
- by user912447
I have a feeling this is quite easy to do but every solution found on google has to do with adding a script to be run whenever someone logs into the machine.
What I am looking for is a way to run a script when only I log into the machine. I ssh into a shared computer and need to have it load a couple modules for me and I imagined the easiest way to do this would to just run a script on login. Is there a simple way?