On Slackware Linux, when I want to set an environment variable I edit this file
vim /etc/environment
On Solaris11, I can set a PATH with nonstandard dirs with those commands(I test the commands in the path with ssh without using the user-environment option and works fine)
svccfg -s svc:/system/environment:init setprop environment/PATH = astring: "/sbin:/bin:/usr/sbin:/usr/bin:/opt/gm/bin:/opt/gm/sbin:/usr/local/bin:/usr/local/sbin"
svccfg -s svc:/system/environment:init refresh
I still don't understand how to set a variable like this on Hp-ux, please don' answer edit /etc/PATH or edit /etc/profile because I had already tried it and doesn't work.