LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Run automatically shell script after the user login (https://www.linuxquestions.org/questions/linux-newbie-8/run-automatically-shell-script-after-the-user-login-4175618036/)

Waiyan Lynn 11-20-2017 09:39 PM

Run automatically shell script after the user login
 
hello,
How can I run my /home/mdcr/mdcr1_script.sh automatically whenever I log in to mdcr user. I am using CentOS on Hyper-V via SSH.

giis 11-20-2017 09:54 PM

Try adding the script into /home/mdcr/.bash_profile file.


All times are GMT -5. The time now is 05:39 PM.