I have a shell script that I want to be run each time a user logs on. I use Ubuntu as the OS.
The script should be run after user logon in ubuntu.
Thanks for your help
In Ubuntu, any script ending in .sh that's placed in /etc/profile.d/ will be run whenever a user logs in. That's what lines 4-11 of /etc/profile do.
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
take a look at /etc/profile
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago