Article 6J342 Run script upon login but no ctrl C

Run script upon login but no ctrl C

by
packets
from LinuxQuestions.org on (#6J342)
I created a bash script script and put it in .profile so it will run upon login. My issue is user can have shell if thy do Ctrl C. I forgot how I did it on the past wherein users will not have shell.

Anyone can advise how to do it?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments