Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-20-2017, 09:39 PM   #1
Waiyan Lynn
LQ Newbie
Registered: Nov 2017
Posts: 8

Rep: Reputation: Disabled
Run automatically shell script after the user login

How can I run my /home/mdcr/ automatically whenever I log in to mdcr user. I am using CentOS on Hyper-V via SSH.

Last edited by Waiyan Lynn; 11-20-2017 at 09:41 PM.
Old 11-20-2017, 09:54 PM   #2
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
Try adding the script into /home/mdcr/.bash_profile file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script to add password to new user and run automatically. nevr2l899 Linux - Newbie 12 03-04-2013 06:45 AM
Shell script to automatically login through ssh and create user Sayan Acharjee Linux - General 10 10-21-2010 01:51 AM
Run a script automatically upon user login? FastFeet Linux - General 3 05-21-2009 05:23 AM
how to run a shell script automatically? ceantuco Linux - Newbie 4 12-16-2008 10:16 AM
Run shell script automatically after Login. hnshashi Linux - Newbie 14 09-26-2008 04:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration