Is it possible to write a shell script that automatically starts running whenever i login to my unix terminal? Please provide any reference material
2 Answers
Add your script inside your .profile . .profile is executed whenever you log in. If a .profile currently doesn't exist in your home directory, create one!
2 Comments
Pramod
We are using putty to remote login. Can I modify my home directory in this case?
Pavan Manjunath
Even I use putty remote login. But your home directory has nothing to do with the way you log in. Just say
cd $HOME from wherever you are. Create a new .profile there and add your script inside it