I have written a script to run automatically after login.
For that I have put it in /etc/profile as:
However, it is executed twice instead of one. Any ideas why?
VNC and SSH have been disabled.
/etc/profile is the
system-wide .profile file for the Bourne shell
It will run EVERY time you start a shell - it DEFINITELY is NOT intended to run programs on login, but to configure the shell.