set environment variable? | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

set environment variable?

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-21-2005
kohoutek kohoutek is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 23 February 2009, 8:33 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hammer & Screwdriver 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...
Sponsored Links
    #2  
Old 12-21-2005
xnightcrawl xnightcrawl is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 November 2006, 5:25 PM EST
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
/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
Sponsored Links
    #3  
Old 12-21-2005
kohoutek kohoutek is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 23 February 2009, 8:33 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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.
    #4  
Old 12-21-2005
xnightcrawl xnightcrawl is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 November 2006, 5:25 PM EST
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
no problem amigo
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expand an environment variable in sed, when the variable contains a slash Ilja Shell Programming and Scripting 2 11-10-2010 09:58 AM
Environment Variable jdash.ps Solaris 2 08-02-2010 05:01 AM
environment variable sharanbr Shell Programming and Scripting 8 06-12-2007 08:43 AM
Environment Variable karyn1617 Shell Programming and Scripting 2 02-04-2005 02:36 PM
TOR environment variable Wittich UNIX for Dummies Questions & Answers 3 07-30-2003 12:40 PM



All times are GMT -4. The time now is 03:29 AM.