[ET Trac] [Einstein Toolkit] #917: Provide a way to query mdb entries for the current machine

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon May 21 15:26:31 CDT 2012


#917: Provide a way to query mdb entries for the current machine
-------------------------+--------------------------------------------------
 Reporter:  hinder       |       Owner:  eschnett
     Type:  enhancement  |      Status:  new     
 Priority:  minor        |   Milestone:          
Component:  SimFactory   |     Version:          
 Keywords:               |  
-------------------------+--------------------------------------------------
 I would like to find out the value of the "basedir" entry in the MDB for
 the current machine.  I currently have to do:

 {{{
 simdir=$(sim print-mdb-entry datura|grep '^[ \t]*basedir[ \t]*=[
 \t]\(.*\)[\t ]*$'|awk '{print $3}')
 }}}

 This is quite ugly, and also requires me to know that the current machine
 is "datura".  I would like to be able to do

 {{{
 sim print-mdb-entry basedir
 }}}

 and have it print the value of basedir for the current machine.  If I
 instead specify a different machine,

 {{{
 sim --machine ranger print-mdb-entry basedir
 }}}

 then it could print the value for the other machine.  This would be much
 more intuitive and useful than the current behaviour.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/917>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list