[Ilugc] FreeBSD - how to set the environment variable?

  • From: lug@xxxxxxxxxxxxxxxxxx (Chandrashekar Babu)
  • Date: Tue Jul 19 17:24:58 2005

On Tue, 19 Jul 2005 17:12:13 +0530, Joseph Kulandai <kulandai@xxxxxxxxx>  
wrote:


This command says,
/bin/csh

Well well, you'll need to add your environment
variables into /root/.cshrc file rather. The
.profile will not be executed by tcsh shell.

The syntax of (t)csh scripts are a lot
different from (ba|k)sh scripts. Anyways,
here's something that you might want to
try out. Edit /root/.cshrc file and add
the following line:
  set JAVA_HOME /usr/local/diablo-jdk1.3.1

'man csh' to learn more about csh.

If you aren't comfortable with csh, you
can change your default shell to /bin/sh
  (or your favourite shell) by running
the chsh command.

--
Chandrashekar Babu.
http://www.chandrashekar.info/




-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Other related posts: