- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Enviroment variable for 2 directories
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 01:55 AM
05-26-2004 01:55 AM
Enviroment variable for 2 directories
SYMBOL_LIB=/users/symbol_lib
SYMBOL_LIB=${SYMBOL_LIB};/vendor/symbol_lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 02:00 AM
05-26-2004 02:00 AM
Re: Enviroment variable for 2 directories
Try the same with :
SYMBOL_LIB=/users/symbol_lib
SYMBOL_LIB=${SYMBOL_LIB}:/vendor/symbol_lib
# echo $SYMBOL_LIB
regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 02:02 AM
05-26-2004 02:02 AM
Re: Enviroment variable for 2 directories
If these are libraries you want your applcation to access then as long as the application(s) in question search for libraries via the $SYMBOL_LIB variable then it should work. Basically, using the example settings you listed above, the application would first look for a library in /users/symbol_lib, then if not found it will look in /vendor/symbol_lib.
Ensure that the application will use $SYMBOL_LIB. Usually you would set $SHLIB_PATH for shared library paths so double check that.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 02:02 AM
05-26-2004 02:02 AM
Re: Enviroment variable for 2 directories
If it is a search path, then you should be able to do something like:
# export SYMBOL_LIB=$SYMBOL_LIB:/vendor/symbol_lib
Note the use of the ':' (colon) character to separate the two items. In your example you have a ';' (semi-colon) which will not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 02:04 AM
05-26-2004 02:04 AM
Re: Enviroment variable for 2 directories
The second definetion has a ";"
SYMBOL_LIB=${SYMBOL_LIB};/vendor/symbol_lib
replace it with ":". I think you must have got some error message too.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:14 AM
05-26-2004 03:14 AM
Re: Enviroment variable for 2 directories
SYMBOL_LIB=/vendor/symbol_lib works fine
SYMBOL_LIB=/users/symbol_lib works fine
SYMBOL_LIB=/vendor/symbol_lib:/users/symbol_lib does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:19 AM
05-26-2004 03:19 AM
Re: Enviroment variable for 2 directories
If it is used in a program or script and doing something like:
${SYMBOL_LIB}/filename
then what you want to do will not work because then it would resolve to a path like:
/usrs/symbol_lib:/vendor/symbol_lib/filename
which is an invalid path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:25 AM
05-26-2004 03:25 AM
Re: Enviroment variable for 2 directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:25 AM
05-26-2004 03:25 AM
Re: Enviroment variable for 2 directories
Patrick had the answer. Unless this variable is used as a search path like $PATH, $SHLIB_PATH, $MANPATH etc., within your application, it is not going to work. If it is used as a search path for looking up symbols, then you will need to ask your application vendor on how they designed it to be.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:31 AM
05-26-2004 03:31 AM
Re: Enviroment variable for 2 directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 03:38 AM
05-26-2004 03:38 AM
Re: Enviroment variable for 2 directories
also, if the application is making a search in this directory to find its files, i.e., there are multiple leve directories underneath it which the application needs to access, you cann symbollicaly link your new directory under the existing one and when the search is performed, it will include this one as well.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 04:25 AM
05-26-2004 04:25 AM
Re: Enviroment variable for 2 directories
Kaps