On Aug 29, 2007, at 4:07 PM, Jeff Squyres wrote:

FWIW, I've been using a funclet to get my DB password recently, like this:

mttdatabase_username = cisco
mttdatabase_password = &cat("/home/mpiteam/mtt-db-password.txt")
mttdatabase_platform = svbu-mpi

I neglected to say that this will not work on the release branch -- I use this on the development MTT branch. We're actually likely to change this in the near future to

mttdatabase_password = &head(1, &cat("/home/mpiteam/mtt-db- password.txt"))

because having &cat() return a scalar when there was only one line in the file made it behave somewhat inconsistently and made it somewhat confusing. So it's a little longer to type, but it gets the right result.

--
Jeff Squyres
Cisco Systems

Reply via email to