[Discuss] RHEL - modify system path with script in profile.d -
Dan Kressin
dkressin at yahoo.com
Sun Nov 20 09:57:06 EST 2011
> Hello Dan,
> You hit the nail on the head..
> My test user and my customer were using the tcsh..
> I changed my test user to bash and it worked.
>
>
> I am more adapt to just convert my user to bash..
>
> I would like to insert a .csh ..script but I'm not sure ..
>
> I guessed with this and it did not work.. Thank you for your time..!!
>
> [root at saeij11 profile.d]# more addpath.csh
> setenv PATH=$PATH:/usr/local/sratoolkit.2.1.7-centos_linux64
> export PATH
> [root at saeij11 profile.d]#
>
I believe the csh version would be just:
setenv PATH $PATH:/your/addition
(no equal sign, and setenv takes care of the 'export')
-Dan
More information about the Discuss
mailing list