× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It is a release of an application that has no *set* time schedule.
Sometimes it can be a few months (weeks if patching) and sometimes over
a year. So I need to install the new code, change the path to include
it
and then do some testing. Being able to quickly change the path is the
important part. So I think I have ended up with the best overall
solution.

I see. Makes sense. But before you put this to bed, and in keeping with
the "don't over-modify .profile" concept, here is what we would usually do
on a Unix system for that sort of application-specific issue:

Create a file in /usr/local/etc, say called "inzMyApp.sh"

(You may have to create /usr/local/etc, but that's a customization standard
that I highly recommend.)

In that file, put the initialization parameters for the application:
MYVAR1="SomeValue": export MYVAR1
MYVAR2="SomeOtherValue": export MYVAR2
PATH=${MYVAR1}:${MYVAR2}:PATH; export PATH
et cetera

Modify your .profile again, this time pulling out the application-specific
stuff and replacing with:

. /usr/local/etc/inzMyApp.sh

(Yes, that period and space are there on purpose. It causes a "source"
operation. Effectively, the inzMyApp.sh script is read as though it was
part of .profile. (You can look up "source kornshell" or "source unix
shell" on google if you're curious)

From now on, your maintenance will be in the application directory, not in
your home directory.

Where this really pays off (besides keeping your .profile relatively clean)
is when more than one person needs the same initialization parameters. Now,
one maintenance one place will have effect on everyone involved. Then
there's the versioning opportunity that's solved by this approach, but
that's a discussion for a later time.

Regards,

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"It's a recession when your neighbor loses his job; it's a depression when
you lose your own."
-- Harry S. Truman




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.