Hi Monks,
I have a script which runs automatically when the user logs on. Sometimes the user may logon via the console (tty) sometimes via remotely via network (pts). E.g.
[root@localhost ~]# who
root tty1 Nov 12 15:48
root pts/0 Nov 12 15:51 (10.10.20.13)