[Discuss] RHEL - modify system path with script in profile.d - solved

stephen goldman sgoldman at MIT.EDU
Sun Nov 20 10:05:58 EST 2011


Thank you Dan

Stephen Goldman
System Administrator
Department of Biology
Massachusetts Institute of Technology
31 Ames Street, 68-316e
Cambridge, Ma. 02139
617-452-2595- sgoldman at mit.edu
----- Original Message ----- 
From: "Dan Kressin" <dkressin at yahoo.com>
To: "stephen goldman" <sgoldman at mit.edu>
Cc: "BLU Discuss" <discuss at blu.org>
Sent: Sunday, November 20, 2011 9:57 AM
Subject: Re: [Discuss] RHEL - modify system path with script in profile.d -


> 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