Run script on login with ssh
        Posted  
        
            by 
                user912447
            
        on Super User
        
        See other posts from Super User
        
            or by user912447
        
        
        
        Published on 2012-09-03T20:35:07Z
        Indexed on 
            2012/09/04
            3:40 UTC
        
        
        Read the original article
        Hit count: 219
        
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?
© Super User or respective owner