Setting Enviroment Variables


Recommended Posts

Im trying to install a program and it says i need to set an enviroment variable using setenv. But i get this error :

bash : setenv : command not found

im using Redhat 9. Please can someone help :(

Link to comment
Share on other sites

I was using this :

setenv BKIT /root/.gnome #-desktop/BTOOL/BKIT

How would i use the export command with that, I just replaced setenv with export and i get a valid identifyer error.

Link to comment
Share on other sites

Last login: Sun Apr  4 12:50:50 on ttyp1
Think different.

(evn@evnbook:evn)$ export MYNAME="someguy"
(evn@evnbook:evn)$ echo $MYNAME
someguy

The syntax changes slightly.

Link to comment
Share on other sites

The setenv command is for SPARC machines.. You press STOP + a to get to the openboot "ok " prompt, and you use setenv there.. AFAIK, its not available on linux boxes.

Link to comment
Share on other sites

setenv is used on the csh and its derivatives. export is used in bash. You can use either shell in Linux and Unix.

Hmm...just noticed 500 posts! :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.