Run bash script automatically after root logs in
Guys I am new to Linux .. I am using redhat ... I did a script which check if the one logging in is the root or another one but the problem is that every time I want the bash script to run I should make right click and open terminal and type sh script.sh so I want the script to run automatic after logging in so what steps or commands should I write ???