[newbie] c shell path

2003-01-22 Thread Aaron Mehl
Can someone tell me how to create variables and add to the path in C
shell???

I can't use many programs because of this, Thanks
Aarom



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] c shell path

2003-01-22 Thread Stephen Kuhn
On Thu, 2003-01-23 at 05:24, Aaron Mehl wrote:
 Can someone tell me how to create variables and add to the path in C
 shell???
 
 I can't use many programs because of this, Thanks
 Aarom
 

You can edit the ~/home/yournamegoeshere/.bashrc to put variables into
it or modify - but you'll have to logout and login again to make sure
they're working properly...

-- 
Thu, 23 Jan 2003 06:50:01 +1100
  6:50am  up 6 days, 16:33,  4 users,  load average: 0.09, 0.15, 0.17
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * RH 8.0 * PC/Mac/Linux/Networking/Consulting
--

The amount of weight an evangelist carries with the almighty is measured
in billigrahams.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] c shell path

2003-01-22 Thread Moshe Kaminsky
Hi,

I don't use any of these shells, so I don't remember the exact details,
but if I'm not mistaken, tcsh reads both ~/.cshrc and ~/.tcshrc. So if
you want to have this variable for both shells, put
setenv JAVA_HOME whatever
In ~/.cshrc. If this file doesn't exist, just create it. Of course, if
you are a sysadmin on this machine you might want to set it for all
users in (something like) /etc/cshrc. Anyway, all the details about
these files should be in
man tcshrc

HTH
Moshe
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of Aaron Mehl
 Sent: Thursday, January 23, 2003 10:27 AM
 To: linux newbie
 Cc: Moshe Kaminsky
 Subject: RE: [newbie] c shell path
 
 
 Thanks,
 
 Yes as in tsch shell, I see no ~/.cshrc at all. I am trying to set up
 some xml/java stuff and need to set JAVA_HOME 
 On Thu, 2003-01-23 at 01:14, Moshe Kaminsky wrote:
  Hi,
  
  If you really mean *C* shell (csh) then it should probably 
 go into the
  ~/.cshrc file. You do something like:
  
  setenv PATH your path:$PATH
  
  Note that the order of the directories is important, the 
 program found
  in the first of them is the one taken. Which mean that if I have
  /usr/java/j2re1.4.1_01/bin in my path and I add 
 /usr/java/j2re1.4.1_01 it will only read the first entry??
 
 
 Thanks 
 Aaron
  Moshe
  
 
 
 
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com