I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS.
if [[ "$HOSTNAME" = "tpat1a" ]] || [[ "$HOSTNAME" = "tpat2a" ]]
No, it is provided after the Path at the very last. I have a file with a path name and newgrp and other required environment. Group can be set after I execute the file. But it is just not working when I placed it in .profile.