The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do i set environment variable ahjiefreak Linux 4 01-20-2008 04:21 PM
sed on an environment variable ? lumix Shell Programming and Scripting 3 12-15-2007 02:30 PM
Using Environment Variable kaiser Shell Programming and Scripting 3 05-01-2006 05:28 AM
Environment Variable karyn1617 Shell Programming and Scripting 2 02-04-2005 11:36 AM
Environment Variable jacobsa UNIX for Dummies Questions & Answers 8 06-03-2002 12:02 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Wink set environment variable?

Installed a program, need to set the system up so that when the executable is entered, it finds the path to the executable. In Windows, set under system properties, advanced, environmental variables. How do I do this with Unix? Specifically using Solaris 9. I have tried:
env PATH=/usr/local/uvscan
This sets it temporarily but when I reboot, it disappears. Thought it would be a .profile file for root but cannot find one.

The documentation for the software says: Set the appropriate environment variable: For Solaris: use LD_LIBRARY_PATH

What's that mean? How do you do that?

Gracias senors y' senorita's...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-21-2005
Registered User
 

Join Date: Dec 2005
Posts: 35
/etc/profile is the system wide variable. you can edit this file or do it from the command prompt.

example:

bourne shell:
set
VARIABLE=blah blah blah

korn shell (ksh):
export VARIABLE=blah blah blah
Reply With Quote
  #3 (permalink)  
Old 12-21-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Gracias

Thanx xnight...I had tried using that file before and it did not work. When you mentioned it, I realized that I had just put in the new PATH=blah blah, not the old one PLUS the new. Now everything works. My what a nice day.
Reply With Quote
  #4 (permalink)  
Old 12-21-2005
Registered User
 

Join Date: Dec 2005
Posts: 35
no problem amigo
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0