Well, if that is so, then /usr/bin/env PATH=$LAMHOME:$PATH
Roberto Pasianot wrote:
>
>
> Hi
>
> Just my $ 0.02 worth. Seems the trouble is with PATH; you
> must have it set to /opt/local/lam-6.3.1/bin and your script
> doesn't change it, so hboot is still from there.
>
> Cheers,
>
> Roberto
>
> On Tue, 8 Apr 2003, Joe Griffin wrote:
>
> > Hi Phil,
> >
> > I am not sure how this helps. For
> > example ... I have my OS pointing to
> > lam-6.3.1, and when I try this to point
> > to lam-6.5.6, the hboot is still from
> > lam-6.3.1. My simple script is:
> >
> > #! /bin/sh
> > export LAMHOME=/opt/local/lam-6.5.6
> > /usr/bin/env LAMHOME=/opt/local/lam-6.5.6
> > $LAMHOME/bin/lamboot -d -v hosts
> >
> > BTW - I did not have any LAM daemons running,
> > and I cleaned /tmp/lam* before making the
> > test, so there were no conflicts.
> >
> > So ... I would really like to set the
> > path to "hboot" when I call lamboot.
> >
> > Joe
> >
> >
> > Phil Ehrens wrote:
> >
> > >The 'env' command is your friend:
> > >
> > >/usr/bin/env LAMHOME=/some/place /some/place/lamboot
> > >
> > >A useful variation:
> > >
> > >/usr/bin/env LD_PRELOAD= LAMHOME=/some/place /some/place/lamboot
> > >
> > >Joe Griffin wrote:
> > >
> > >
> > >>Hello,
> > >>
> > >>Is there a way to pass the
> > >>path of "hboot" into lamboot?
> > >>
> > >>I have different software using
> > >>different versions of LAM. I
> > >>would like to allow users to
> > >>run each software package at
> > >>the same time.
> > >>
> > >>Currently I have to:
> > >>- set LAMHOME/PATH/LD_LIBRARY_PATH
> > >>- run job using LAM-6.3.1
> > >>- set LAMHOME/PATH/LD_LIBRARY_PATH
> > >>- run job using LAM-6.5.6
> > >>
> > >>I have control of the application scripts
> > >>and can have the correct "lamboot" used,
> > >>however, it appears that lamboot calls
> > >>the hboot in my path (which can only
> > >>be for a specific version).
> > >>
> > >>I tried creating a /bin/hboot which
> > >>could determine the version (new version
> > >>has a -b), and then call the correct
> > >>hboot, but that lamboot did not like
> > >>my trickery.
> > >>
> > >>So .. Is there a way to pass the path of
> > >>"hboot" to lamboot?
> > >>
> > >>Thanks,
> > >>Joe Griffin
> > >>
> > >>_______________________________________________
> > >>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> > >>
> > >>
> > >
> > >
> > >
> >
> > _______________________________________________
> > This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> >
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
Phil Ehrens <pehrens_at_[hidden]>| Fun stuff:
The LIGO Laboratory, MS 18-34 | http://www.ralphmag.org
California Institute of Technology | http://www.yellow5.com
1200 East California Blvd. | http://www.total.net/~fishnet/
Pasadena, CA 91125 USA | http://slashdot.org
Phone:(626)395-8518 Fax:(626)793-9744 | http://kame56.homepage.com
|