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/
--
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
|