[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Hi
If you have lots of packaged software locally installed on your home
directory and want to test or use it. These three lines of code will
help you.
-------------
export CLASSPATH=$CLASSPATH:`find ${HOME} \( -name bin -o -name lib -o
-name '*.jar' \)|perl -pe 's/\n/:/'`
export PATH=`find ${HOME} -name bin |perl -pe 's/\n/:/'`:$PATH
export LD_LIBRARY_PATH=`find ${HOME} -name lib |perl -pe 's/\n/:/'`:
$LD_LIBRARY_PATH
---------
With regards
Antony
On Mon, 2007年06月25日 at 15:15 -0400, Doug Crompton wrote:
> Art,
>
> Good point!
>
> Regards, Doug
>
> On 2007年6月24日, Art Alexion wrote:
>
> > On Sunday, 24 June 2007 09:13, Carl Gustafson wrote:
> > > On Sun, Jun 24, 2007 at 01:53:22AM -0400, Doug Crompton wrote:
> > > > I should know this but at the moment it slips me... how do I allow access
> > > > to binary files, scripts, etc. in the user directory without having to
> > > > specify ./xxxxx ???
> > >
> > > It sounds like you want to be able to run executables that are located in
> > > the current working directory without having to specify that directory (ie.
> > > you want to type myapp instead of ./myapp). If this is the case, the way it
> > > is done is to add the current working directory to your PATH variable.
> > > HOWEVER, this is generally (and for good reason) considered to be a BAD
> > > IDEA for security purposes - it allows a malicious user to sneak an
> > > executable into your own directory that would supplant an otherwise "safe"
> > > binary from, say /usr/bin. This is why . (the current working directory) is
> > > NOT in the PATH by default.
> >
> > I've made it a habit, scripts in progress go in ~/bin (not in my PATH); Once
> > I'm satisfied with them, I copy them to /usr/local/bin. I understand what
> > you are saying about "sole user, not a security problem", but its just easy
> > to do and a good habit to get into.
> > --
> >
> > _____________________________________________________________
> > Art Alexion
> >
>
> ___________________________________________________________________________
> Philadelphia Linux Users Group -- http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug