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.
take a look at /etc/profile
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago