Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Application search path

Status
Not open for further replies.

xkjdhdg

Technical User
Feb 7, 2001
778
US
Can someone tell me where to set the search path for applications. I have several programs that use other LIB directories. I am running C shell on a Ultra 450 Solaris 8 or 5.8. I thought it was .cshrc but when I do a which. I get a totally different path.
 
How are you setting yor path in C Shell?
If it is relatively small you can use:
setenv PATH /usr/bin:/usr/sbin:/blah
For larger paths I would set it as follows

set path =( /usr/bin /usr/sbin /usr/local/bin /usr/openwin/bin /usr/dt/bin /usr/ccs/bin /usr/local/sbin )

 
I have been use a .cshrc file and yes I do have a large search. I think it is about four lines.
Is there a file the system reads when you login.
 
My system does not have a .cshrc in /etc or a .login
 
The .cshrc and .login are in your home directories. There is a default .login in /etc but, there should not be a path environment set. Type command "set" or $PATH and look at the path entry... You may want to verify that you default shell is the c-shell... Use command "env | grep SHELL
 
I can but it will be Monday before I can do that. I have resolved some of my problem. The system still has issues with the search path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top