Skip to content
Snippets Groups Projects
Commit e0a24bdd authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

mkexp: added tool 'duexp' to show disk usage by the given experiment

parent 80fa7b2b
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ Global
* Added creation of config dump to mkexp (including backup)
* Changed mkexp namelist formatting to add multi-group identifiers as comment
* Changed merge of process environment ('DEFAULT' section) to be sorted
* Added tool 'duexp' to show disk usage by the given experiment
Release 1.0.0
=============
......
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta><meta:creation-date>2015-01-05T17:44:27.618344249</meta:creation-date><dc:title>Make Experiments!</dc:title><meta:editing-duration>P12DT2H35S</meta:editing-duration><meta:editing-cycles>135</meta:editing-cycles><meta:generator>LibreOffice/5.1.6.2$Linux_X86_64 LibreOffice_project/10m0$Build-2</meta:generator><meta:initial-creator>Karl-Hermann Wieners</meta:initial-creator><dc:date>2017-10-13T14:02:48.304395046</dc:date><dc:creator>Karl-Hermann Wieners</dc:creator><meta:printed-by>Karl-Hermann Wieners</meta:printed-by><meta:print-date>2015-01-20T10:55:48.576690105</meta:print-date><dc:subject>Run-script generation for earth system models</dc:subject><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="28" meta:paragraph-count="560" meta:word-count="7646" meta:character-count="48733" meta:non-whitespace-character-count="41250"/><meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="A4" xlink:href="../../../../../../home/m221078/.config/libreoffice/4/user/template/A4.ott" meta:date="2015-01-05T17:44:27.463210655"/></office:meta>
<office:meta><meta:creation-date>2015-01-05T17:44:27.618344249</meta:creation-date><dc:title>Make Experiments!</dc:title><meta:editing-duration>P12DT2H3M26S</meta:editing-duration><meta:editing-cycles>136</meta:editing-cycles><meta:generator>LibreOffice/5.1.6.2$Linux_X86_64 LibreOffice_project/10m0$Build-2</meta:generator><meta:initial-creator>Karl-Hermann Wieners</meta:initial-creator><dc:date>2018-06-29T12:20:58.151355861</dc:date><dc:creator>Karl-Hermann Wieners</dc:creator><meta:printed-by>Karl-Hermann Wieners</meta:printed-by><meta:print-date>2015-01-20T10:55:48.576690105</meta:print-date><dc:subject>Run-script generation for earth system models</dc:subject><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="28" meta:paragraph-count="562" meta:word-count="7663" meta:character-count="48836" meta:non-whitespace-character-count="41338"/><meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="A4" xlink:href="../../../../../../home/m221078/.config/libreoffice/4/user/template/A4.ott" meta:date="2015-01-05T17:44:27.463210655"/></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="ViewAreaTop" config:type="long">12531</config:config-item>
<config:config-item config:name="ViewAreaTop" config:type="long">218271</config:config-item>
<config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaWidth" config:type="long">15369</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">17083</config:config-item>
<config:config-item config:name="ViewAreaWidth" config:type="long">22311</config:config-item>
<config:config-item config:name="ViewAreaHeight" config:type="long">17337</config:config-item>
<config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item>
<config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId" config:type="string">view2</config:config-item>
<config:config-item config:name="ViewLeft" config:type="long">13437</config:config-item>
<config:config-item config:name="ViewTop" config:type="long">15314</config:config-item>
<config:config-item config:name="ViewLeft" config:type="long">12278</config:config-item>
<config:config-item config:name="ViewTop" config:type="long">230180</config:config-item>
<config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item>
<config:config-item config:name="VisibleTop" config:type="long">12531</config:config-item>
<config:config-item config:name="VisibleRight" config:type="long">15367</config:config-item>
<config:config-item config:name="VisibleBottom" config:type="long">29612</config:config-item>
<config:config-item config:name="VisibleTop" config:type="long">218271</config:config-item>
<config:config-item config:name="VisibleRight" config:type="long">22310</config:config-item>
<config:config-item config:name="VisibleBottom" config:type="long">235606</config:config-item>
<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item>
......@@ -56,7 +56,7 @@
<config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item>
<config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterName" config:type="string">Officejet-4620</config:config-item>
<config:config-item config:name="PrinterName" config:type="string">Officejet-4620-series</config:config-item>
<config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item>
<config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
......@@ -68,7 +68,7 @@
<config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item>
<config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item>
<config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item>
<config:config-item config:name="Rsid" config:type="int">15654475</config:config-item>
<config:config-item config:name="Rsid" config:type="int">15736838</config:config-item>
<config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintEmptyPages" config:type="boolean">false</config:config-item>
<config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item>
......@@ -108,7 +108,7 @@
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item>
<config:config-item config:name="CurrentDatabaseCommand" config:type="string"/>
<config:config-item config:name="PrinterSetup" config:type="base64Binary">pAH+/09mZmljZWpldC00NjIwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpPZmZpY2VqZXQtNDYyMAAAAAAAAAAAAAAAAAAWAAMAxgAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9T2ZmaWNlamV0LTQ2MjAKb3JpZW50YXRpb249UG9ydHJhaXQKY29waWVzPTEKY29sbGF0ZT1mYWxzZQptYXJnaW5kYWp1c3RtZW50PTAsMCwwLDAKY29sb3JkZXB0aD0yNApwc2xldmVsPTAKcGRmZGV2aWNlPTEKY29sb3JkZXZpY2U9MApQUERDb250ZXhEYXRhClBhZ2VTaXplOkxldHRlcgBJbnB1dFNsb3Q6QXV0bwAAEgBDT01QQVRfRFVQTEVYX01PREUOAERVUExFWF9VTktOT1dO</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary">nAH+/09mZmljZWpldC00NjIwLXNlcmllcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpPZmZpY2VqZXQtNDYyMC1zZXJpZXMAAAAAAAAWAAMAvgAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9T2ZmaWNlamV0LTQ2MjAtc2VyaWVzCm9yaWVudGF0aW9uPVBvcnRyYWl0CmNvcGllcz0xCmNvbGxhdGU9ZmFsc2UKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCnBkZmRldmljZT0xCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQpQYWdlU2l6ZTpMZXR0ZXIAABIAQ09NUEFUX0RVUExFWF9NT0RFDgBEVVBMRVhfVU5LTk9XTg==</config:config-item>
<config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item>
</config:config-item-set>
</office:settings>
......@@ -1231,50 +1231,56 @@
<style:text-properties officeooo:rsid="00288fc1" officeooo:paragraph-rsid="00423119"/>
</style:style>
<style:style style:name="P278" style:family="paragraph" style:parent-style-name="Heading_20_2">
<style:text-properties officeooo:paragraph-rsid="00423119"/>
<style:text-properties officeooo:paragraph-rsid="0063d022"/>
</style:style>
<style:style style:name="P279" style:family="paragraph" style:parent-style-name="Heading_20_2">
<style:text-properties officeooo:paragraph-rsid="0063d022"/>
<style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="0086f697" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P280" style:family="paragraph" style:parent-style-name="Heading_20_2">
<style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="0086f697" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties officeooo:paragraph-rsid="00f02006"/>
</style:style>
<style:style style:name="P281" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="0074d148"/>
<style:style style:name="P281" style:family="paragraph" style:parent-style-name="List_20_Contents">
<style:text-properties officeooo:paragraph-rsid="00f02006"/>
</style:style>
<style:style style:name="P282" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="00750ebf"/>
<style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="0074d148"/>
</style:style>
<style:style style:name="P283" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:rsid="00d7bd9c" officeooo:paragraph-rsid="00d7bd9c"/>
<style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="00750ebf"/>
</style:style>
<style:style style:name="P284" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" style:text-underline-style="none" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties officeooo:rsid="00d7bd9c" officeooo:paragraph-rsid="00d7bd9c"/>
</style:style>
<style:style style:name="P285" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:rsid="009beecc" officeooo:paragraph-rsid="009beecc" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties fo:font-style="normal" style:text-underline-style="none" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P286" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:paragraph-rsid="00c2926f" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:rsid="009beecc" officeooo:paragraph-rsid="009beecc" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P287" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:paragraph-rsid="00c2926f" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P288" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="00931d47" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties fo:font-style="normal" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P289" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties fo:font-style="normal" officeooo:rsid="009715be" officeooo:paragraph-rsid="00c6886f" style:font-style-asian="normal" style:font-style-complex="normal"/>
<style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="00931d47" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P290" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:rsid="0063d022" officeooo:paragraph-rsid="0063d022"/>
<style:text-properties fo:font-style="normal" officeooo:rsid="009715be" officeooo:paragraph-rsid="00c6886f" style:font-style-asian="normal" style:font-style-complex="normal"/>
</style:style>
<style:style style:name="P291" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:paragraph-rsid="00931d47"/>
<style:text-properties officeooo:rsid="0063d022" officeooo:paragraph-rsid="0063d022"/>
</style:style>
<style:style style:name="P292" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:paragraph-rsid="00931d47"/>
</style:style>
<style:style style:name="P293" style:family="paragraph" style:parent-style-name="Heading_20_3">
<style:text-properties officeooo:rsid="00c6886f" officeooo:paragraph-rsid="00c6886f"/>
</style:style>
<style:style style:name="P294" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading">
<style:text-properties officeooo:paragraph-rsid="00f02006"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties officeooo:rsid="000be205"/>
</style:style>
......@@ -2019,6 +2025,9 @@
<style:style style:name="T248" style:family="text">
<style:text-properties officeooo:rsid="00eede4b"/>
</style:style>
<style:style style:name="T249" style:family="text">
<style:text-properties officeooo:rsid="00f02006"/>
</style:style>
<style:style style:name="Sect1" style:family="section">
<style:section-properties style:editable="false">
<style:columns fo:column-count="1" fo:column-gap="0cm"/>
......@@ -2066,7 +2075,7 @@
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="pm1">
<style:footer>
<text:p text:style-name="Footer"><text:page-number text:select-page="current">28</text:page-number><text:tab/><text:tab/><text:modification-date style:data-style-name="N84">2017-10-13</text:modification-date>, <text:modification-time style:data-style-name="N41">14:02:48</text:modification-time></text:p>
<text:p text:style-name="Footer"><text:page-number text:select-page="current">8</text:page-number><text:tab/><text:tab/><text:modification-date style:data-style-name="N84">2018-06-29</text:modification-date>, <text:modification-time style:data-style-name="N41">12:20:58</text:modification-time></text:p>
</style:footer>
</style:master-page>
<style:master-page style:name="First_20_Page" style:display-name="First Page" style:page-layout-name="pm2" style:next-style-name="Standard"/>
......@@ -2339,9 +2348,11 @@
<text:p text:style-name="P189">For an easy comparison of the whole set of generated scripts for two different experiments, this tool takes the directories defined in each configuration, locates the job scripts corresponding to each other (e.g. exp0001.run and exp0002.run), equalizes all occurrences of the experiment name in the scripts and then uses the diff tool to show differences. The environment variable &apos;DIFF&apos; may be set to an alternative tool to be called instead.</text:p>
<text:p text:style-name="P223">rmexp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T194">.config</text:span><text:span text:style-name="T66"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T66">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T66">]</text:span></text:p>
<text:p text:style-name="P207">This allows <text:span text:style-name="T197">interactive </text:span>remov<text:span text:style-name="T197">al for </text:span>all data of an experiment without having to deal with path names, as these are read from the configuration.</text:p>
<text:p text:style-name="P235"><text:span text:style-name="T239">cp</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T194">.config</text:span><text:span text:style-name="T66"> </text:span><text:span text:style-name="T37">new_name</text:span><text:span text:style-name="T97"> </text:span><text:span text:style-name="T66">[</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T66">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T66">]</text:span></text:p>
<text:p text:style-name="List_20_Contents"><text:span text:style-name="T240">Replicates all data </text:span>of an experiment <text:span text:style-name="T239">to a new experiment name; also updates text files by rewriting references to the old name</text:span>.</text:p>
<text:h text:style-name="P270" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2534_1114405012"/><text:span text:style-name="T150">F</text:span>ormat of .config files<text:bookmark-end text:name="__RefHeading__2534_1114405012"/></text:h>
<text:p text:style-name="P294"><text:span text:style-name="T239">cp</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T194">.config</text:span><text:span text:style-name="T66"> </text:span><text:span text:style-name="T37">new_name</text:span><text:span text:style-name="T97"> </text:span><text:span text:style-name="T66">[</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T66">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T66">]</text:span></text:p>
<text:p text:style-name="P281"><text:span text:style-name="T240">Replicates all data </text:span>of an experiment <text:span text:style-name="T239">to a new experiment name; also updates text files by rewriting references to the old name</text:span>.</text:p>
<text:p text:style-name="P294"><text:span text:style-name="T249">du</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T194">.config</text:span><text:span text:style-name="T66"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T66">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T66">]</text:span></text:p>
<text:p text:style-name="P281"><text:span text:style-name="T249">Shows disk usage for all data that has been created by</text:span> <text:span text:style-name="T249">an</text:span> experiment.</text:p>
<text:h text:style-name="P280" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2534_1114405012"/><text:span text:style-name="T150">F</text:span>ormat of .config files<text:bookmark-end text:name="__RefHeading__2534_1114405012"/></text:h>
<text:p text:style-name="P15">The .config files are simple text files containing a dictionary of variables with their respective values. They may be structured using sections and comments. <text:span text:style-name="T145">For reading these files, </text:span><text:span text:style-name="T12">mkexp</text:span><text:span text:style-name="T145"> uses the </text:span><text:span text:style-name="T12">configobj</text:span><text:span text:style-name="T145"> Python library. All settings found in the .config files are handled as Python variables internally.</text:span></text:p>
<text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__1669_1438093122"/>Variables<text:bookmark-end text:name="__RefHeading__1669_1438093122"/></text:h>
<text:p text:style-name="P18">A <text:span text:style-name="T146">configuration variable is set by simply assigning a text value to a name, as in</text:span></text:p>
......
No preview for this file type
duexp 0 → 100755
#! /bin/sh
#
# Show disk usage for experiment using config information.
#
# $Id$
#
PROGRAM=`basename $0`
BINDIR=`dirname $0`
PATH="$BINDIR:$PATH"
die () {
echo "$@" >&2
exit 1
}
[ "x$1" = x ] && die "Oops: invalid number of parameters
Usage: $PROGRAM config_file [key=value...]"
CONFIG=$1
shift
eval `getexp -v "$CONFIG" "$@" || echo '
' exit $?`
du -ch --time \
$WORK_DIR \
$RESTART_DIR \
$SCRIPT_DIR \
$LOG_DIR \
$DATA_DIR \
$MON_DIR/$EXP_ID \
2> /dev/null |
sed "
s,$WORK_DIR,\$WORK_DIR,
s,$RESTART_DIR,\$RESTART_DIR,
s,$SCRIPT_DIR,\$SCRIPT_DIR,
s,$LOG_DIR,\$LOG_DIR,
s,$DATA_DIR,\$DATA_DIR,
s,$MON_DIR/$EXP_ID,\$MON_DIR/\$EXP_ID,
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment