Warning: Parameter 1 to behaviorsPagesStatiques::addTplPath() expected to be a reference, value given in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php on line 304

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/public/lib.urlhandlers.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/core/class.dc.core.php:304) in /home/flyounet/dev.flyou.net/dotclear-2.2.3/inc/libs/clearbricks/common/lib.http.php on line 273
Flyou.net [Dev] : Développements - Tag - F01common.lib 2017-05-04T04:41:02+02:00 Flyounet urn:md5:69f091255befd3717a2b2e45b9aa3688 Dotclear F01common.lib v0.28 urn:md5:36df6dad5e231dee988d2ac43182277f 2010-05-03T17:58:00+02:00 2010-05-03T18:12:47+02:00 Flyounet Outils & Développements bashF01common.libkshLinuxScriptShellUnix <p>Because I need it, I implement the <code>statusBar</code> <a href="http://dev.flyou.net/post/2010/05/03/F01common.lib-v0.28#FunctionList" hreflang="en">function</a>. <a href="http://dev.flyou.net/public/F01common.lib/v0.28/doc/F01_statusBar_01.png" title="Test statusBar 01"><img src="http://dev.flyou.net/public/F01common.lib/v0.28/doc/.F01_statusBar_01_m.jpg" alt="Test statusBar 01" style="display:block; margin:0 auto;" title="Test statusBar 01, mai 2010" /></a> <a href="http://dev.flyou.net/public/F01common.lib/v0.28/doc/F01_statusBar_02.png" title="Test statusBar 02"><img src="http://dev.flyou.net/public/F01common.lib/v0.28/doc/.F01_statusBar_02_m.jpg" alt="Test statusBar 02" style="display:block; margin:0 auto;" title="Test statusBar 02, mai 2010" /></a> I tested with KSH and Bash and it seems to work with both.</p> <h4>Changelog :<a name="ChangeLog"></a></h4> <pre>+ statusBar : generate the informations to have a status bar. eg. 0%....5%....10%.... and so on until 100%</pre> <h4>Variables &amp; Functions diagram :<a name="Schema"></a></h4> <p><img src="http://dev.flyou.net/public/F01common.lib/v0.28/doc/.common.lib_m.jpg" alt="common.lib.png" style="display:block; margin:0 auto;" title="Liste des variables et fonctions" /></p> <h4>Files are :<a name="FileList"></a></h4> <ul> <li><code>common.lib_v0.28.tar.bz2</code>&nbsp;: L'archive qui contient tous les fichiers,</li> <li><code>common.lib.README</code>&nbsp;: Une micro documentation,</li> <li><code>common.lib</code>&nbsp;: La librairie Shell,</li> <li><code>_common4bash.lib</code>&nbsp;: L'extension pour Bash de la fonction <code>textBox()</code>,</li> <li><code>doc/common.lib.mm</code>&nbsp;: La liste de fonctions et variables sous forme de fichier Free(Mind|Plane),</li> <li><code>doc/common.lib.png</code>&nbsp;: La liste de fonctions et variables sous forme de fichier image,</li> <li><code>test/libHelp.sh</code>&nbsp;: Un script de test qui retourne de l'aide sur les fonctions,</li> <li><code>test/test_common-lib.conf</code>&nbsp;: Un fichier de configuration pour exécuter le script de test,</li> <li><code>test/test_common-lib.sh</code>&nbsp;: Un script de test, qui exécute quasiment toutes les fonctions de la librairie.</li> </ul> <h5>MD5 files :<a name="Md5List"></a></h5> <pre>9fa4b288ecc8e77c4fc34e712191c738 _common4bash.lib a8483e625e5218b308230f6a1cbf3ef9 common.lib da48aa769eb642b15683dddf9df6b09c common.lib.README c1d1416cd585ba0bb4f676571a8d16c9 doc/common.lib.mm 92071c09cb37d37bcc2669d5d4461fae doc/common.lib.png d04d3958e604ffdd69d5387d6c95110f test/libHelp.sh 727d5784f66d1a3f73c60e6179e97ca0 test/test_common-lib.conf f69437db303a6cda03f7964dc007bd68 test/test_common-lib.sh 8f4700e95ca3f8d1aa6e6e25a23bb194 F01common.lib_v0.28.tar.bz2</pre> <h5>Sha1 files :<a name="Sha1List"></a></h5> <pre>c525977312841d164ff589621fed70310b23b9c9 _common4bash.lib 868d379be8e4d22618d9714fe736ebb7d2426216 common.lib 33a81e3d04be359c60b2b9b7c67d918881415e1c common.lib.README eae8091cc12cd768d00f827f893ac2284367144c doc/common.lib.mm fb5379fb12394a4094e98b70bf2a99986db0ea64 doc/common.lib.png f8f1bf4afb8e54ec122f5f6e67a8a0bba72e98c8 test/libHelp.sh c21039c426cf47f9c9e0cc6c36e67c6e458e1978 test/test_common-lib.conf 6494f41cfde70c9fc6a811c0e316ad864492a232 test/test_common-lib.sh 772236b0435bcc54ea812eecd879ea2b009efec2 F01common.lib_v0.28.tar.bz2</pre> <h4>Function list :<a name="FunctionList"></a></h4> <p>Have a look in the <a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26#FunctionList" hreflang="fr">previous note</a> (related to version <a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26">v0.26</a>)</p> <pre>#F01.25.02 #Function : statusBar, Print (or return) datas to make a status bar</pre> http://dev.flyou.net/post/2010/05/03/F01common.lib-v0.28#comment-form http://dev.flyou.net/feed/atom/comments/24 F01common.lib v0.27 urn:md5:6dc23ccfe5b0af2d0e857e66807927e2 2010-04-27T14:00:00+02:00 2010-05-03T18:14:18+02:00 Flyounet Outils & Développements bashF01common.libkshLinuxScriptShellUnix <p>Due to lots of bugs in the <a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26" hreflang="fr">previous version</a>, I'm happy to show you this one with I hope no bug inside.</p> <p>Nearly all tests have been done with <a href="http://dev.flyou.net/tag/ksh">Ksh</a>, and unfortunately I forget to test under <a href="http://dev.flyou.net/tag/bash">Bash</a>, and that's the result... Sorry.</p> <h4>Changelog :<a name="ChangeLog"></a></h4> <pre> &gt; Problem with the <a href="http://dev.flyou.net/tag/bash">Bash</a> version. If old <a href="http://dev.flyou.net/tag/bash">Bash</a> is use BASH_SOURCE doesn't exist... Now looks for the files instead of trying to load it directly to avoid, error messages. Search in above and under directory. * F01Version return the path of the Bash extension. * trim : Huge bug ! Instead of unsetting __ltrim &amp; __trim, i unsetted functions ltrim &amp; rtrim... &gt; ltrim &amp; rtrim don't work under Bash ! ARGGGGGGGGGGGGG !!!!! * iniParseFile : In case of a line only containing a left var with incorrect character (like a dash -), the awk version sent an error to the output (and under <a href="http://dev.flyou.net/tag/ksh">Ksh</a> stops). Function has been rewritted purely in <a href="http://dev.flyou.net/tag/Shell">Shell</a>... * sprintf : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. * iniGetValue : Not use grep anymore. Only Shell ! * fileCheck : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. * logMe : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. &gt; Now only logRotate use non-shell programs ! + myError : If none args then empty __lastError</pre> <h4>Variables &amp; Functions diagram :<a name="Schema"></a></h4> <p><img src="http://dev.flyou.net/public/F01common.lib/v0.27/doc/.common.lib_m.jpg" alt="common.lib.png" style="display:block; margin:0 auto;" title="Liste des variables et fonctions" /></p> <h4>Files are :<a name="FileList"></a></h4> <ul> <li><code>common.lib_v0.27.tar.bz2</code> : L'archive qui contient tous les fichiers,</li> <li><code>common.lib.README</code> : Une micro documentation,</li> <li><code>common.lib</code> : La librairie Shell,</li> <li><code>_common4bash.lib</code> : L'extension pour Bash de la fonction <code>textBox()</code>,</li> <li><code>doc/common.lib.mm</code> : La liste de fonctions et variables sous forme de fichier Free(Mind|Plane),</li> <li><code>doc/common.lib.png</code> : La liste de fonctions et variables sous forme de fichier image,</li> <li><code>test/libHelp.sh</code> : Un script de test qui retourne de l'aide sur les fonctions,</li> <li><code>test/test_common-lib.conf</code> : Un fichier de configuration pour exécuter le script de test,</li> <li><code>test/test_common-lib.sh</code> : Un script de test, qui exécute quasiment toutes les fonctions de la librairie.</li> </ul> <h5>MD5 files :<a name="Md5List"></a></h5> <pre>d04d3958e604ffdd69d5387d6c95110f test/libHelp.sh 727d5784f66d1a3f73c60e6179e97ca0 test/test_common-lib.conf cef5238682be487c62fd55f9054321fb test/test_common-lib.sh 16e92798581ba2f57b82dbdfdbb60645 doc/common.lib.png 882c79e3ff9b15510f6fc457aef94b8d doc/common.lib.mm 9fa4b288ecc8e77c4fc34e712191c738 _common4bash.lib faa364482cbf69235561956c2b14f464 common.lib.README e72679facbec1adc7bd938e7d01d3b53 common.lib 68ce26b91ce97f5b521c96289718e286 F01common.lib_v0.27.tar.bz2</pre> <h5>Sha1 files :<a name="Sha1List"></a></h5> <pre>f8f1bf4afb8e54ec122f5f6e67a8a0bba72e98c8 test/libHelp.sh c21039c426cf47f9c9e0cc6c36e67c6e458e1978 test/test_common-lib.conf d47f2071c31cf653019e3c9b92fd1bde4503c21d test/test_common-lib.sh 1abdfbf61ef8f0b003e990c4145dd3be675c1936 doc/common.lib.png 43f7a0673984fc8653cc4469d5a9a28229955d85 doc/common.lib.mm c525977312841d164ff589621fed70310b23b9c9 _common4bash.lib d4c8767c77a60dfa2fb97872f22b9030beb6844f common.lib.README 2eaf7218008d8ac5588598bf5093301dfb21e8c5 common.lib b6e842358c2461118b696696ee24f49e9afb7910 F01common.lib_v0.27.tar.bz2</pre> <h4>Function list :<a name="FunctionList"></a></h4> <p>Have a look in the <a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26#FunctionList" hreflang="fr">previous note</a> (related to version <a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26">v0.26</a>)</p> http://dev.flyou.net/post/2010/04/27/F01common.lib-v0.27#comment-form http://dev.flyou.net/feed/atom/comments/22 F01common.lib v0.26 urn:md5:3be75f99c70206f5c01a7362f93023ab 2010-04-22T21:21:00+02:00 2010-04-27T16:04:15+02:00 Flyounet Outils & Développements bashF01common.libkshLinuxScriptShellUnix <p>J'ai oublié de publier les précédentes versions, aussi je vous présente cette nouvelle version.</p> <p>Après pas mal de boulot, il ne reste plus que la fonction <code>iniParseFile</code> qui continue d'utiliser <code>awk</code>, sinon tout le reste n'utilise plus que le Shell avec lequel il a été exécuté.<br /> Et j'en ai profité pour passer le code sous GPLv3 et <acronym title="Demerden Sie Sich License">DSSL</acronym> (disponible <a href="http://dssl.flyounet.net/licenses" hreflang="fr">là</a>).</p> <p>L'incontournable Changelog :<a name="ChangeLog"></a></p> <pre> v0.23 [30/01/2010] Flyounet [@Home] : * fileCreate: In case of error during touch an ugly message is now sent to /dev/null (for chmod too) v0.24 [03/03/2010] Flyounet [@Home] : &gt; First svn version v0.25 [01/04/2010] Flyounet [@Home] : + textFill: equivalent to perl "string" x number + textBox: put a caracter all around a text * textBox: not working with KSH + _str2lower &amp; _str2upper have been added, cause to KSH that doesn't support Case modification of Bash. * textBox: now use _str2*er and work with KSH * iniGetValue: Remove the call to awk (Yeah ! Love shell !) v0.26 [22/04/2010] Flyounet [@Home] : + parseHeadersForHelp: Print the headers of each function in a file. Headers are based on a first line containing a #F??. &gt; textBox: Only works with KSH... Fuck ! * textBox: A subfile is needed to make it works with bash.</pre> <p>J'ai tenté de la rendre la plus indépendante possible de <code>sed</code> et <code>awk</code> qui sont assez incontournable<sup>[<a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26#pnote-21-1" id="rev-pnote-21-1">1</a>]</sup>. Elle fonctionne sous <a href="http://dev.flyou.net/tag/bash">bash</a> ou <a href="http://dev.flyou.net/tag/ksh">ksh</a>.</p> <p>Ci-dessous un aperçu des variables et fonctions :<a name="Schema"></a> <img src="http://dev.flyou.net/public/F01common.lib/v0.26/doc/.common.lib_m.jpg" alt="common.lib.png" style="display:block; margin:0 auto;" title="Liste des variables et fonctions" /></p> <p>En annexes sont fournis les fichiers indépendants, ainsi qu'une archive regroupant le tout.<br /> Les fichiers sont :<a name="FileList"></a></p> <ul> <li><code>common.lib_v0.26.tar.bz2</code>&nbsp;: L'archive qui contient tous les fichiers,</li> <li><code>common.lib.README</code>&nbsp;: Une micro documentation,</li> <li><code>common.lib</code>&nbsp;: La librairie Shell,</li> <li><code>_common4bash.lib</code>&nbsp;: L'extension pour Bash de la fonction <code>textBox()</code>,</li> <li><code>doc/common.lib.mm</code>&nbsp;: La liste de fonctions et variables sous forme de fichier Free(Mind|Plane),</li> <li><code>doc/common.lib.png</code>&nbsp;: La liste de fonctions et variables sous forme de fichier image,</li> <li><code>test/libHelp.sh</code>&nbsp;: Un script de test qui retourne de l'aide sur les fonctions,</li> <li><code>test/test_common-lib.conf</code>&nbsp;: Un fichier de configuration pour exécuter le script de test,</li> <li><code>test/test_common-lib.sh</code>&nbsp;: Un script de test, qui exécute quasiment toutes les fonctions de la librairie.</li> </ul> <p>Les md5 des fichiers :<a name="Md5List"></a></p> <pre>26ecc237a2dcc4f74f3a21ed3db809d6 _common4bash.lib 2c540c2a2516829a7f0796ebdc789979 common.lib 07d486cdcf8c5623a2a17b7183c0b7be common.lib.README dde7d1862448a90eaadfd8e2ee5ec811 doc/common.lib.png 606b099e82e48e846c71555b2827237a doc/common.lib.mm d04d3958e604ffdd69d5387d6c95110f test/libHelp.sh 51504fd29f5fd1aa73137d73657536ae test/test_common-lib.conf 21793fdcd0cc20cf16743e223d157a63 test/test_common-lib.sh 4cef5fce3dc9d224333540b91bd53f61 F01common.lib_v0.26.tar.bz2</pre> <p>Les sha1 des fichiers :<a name="Sha1List"></a></p> <pre>123dfbdbce15d27c0d5ca8a927d5d2fe0a575b41 _common4bash.lib 72e7de48dd30ef059bc16bbd809536505de62cdf common.lib fa9dead34dbc604a49ddf15b81805d288a9a0157 common.lib.README 0acab9ac384dfb9ce9e30baa4195cd2088fc069b doc/common.lib.png d32b6a8c2ad02816031b1e2f39dde6d7f41818af doc/common.lib.mm f8f1bf4afb8e54ec122f5f6e67a8a0bba72e98c8 test/libHelp.sh 34a05abbd28321b353c34b4003b7e001afd8a1b0 test/test_common-lib.conf db07298d8710c78ca681dc4496408ee4901aa000 test/test_common-lib.sh b849101928c71eec69f7623b233f369bf0dcfd3c F01common.lib_v0.26.tar.bz2</pre> <p>Ci-dessous la liste des fonctions :<a name="FunctionList"></a></p> <pre>#F01.01.03 #Function : ps2, Print to screen string passed in argument #F01.02.02 #Function : p2st, Print to screen string passed in argument, with Time before #F01.03.01 #Function : oops, Print to screen string passed in argument, and exit 1 #F01.04.01 #Function : oopst, Print to screen string passed in argument, with time before, and exit 1 #F01.05.06 #Function : myDebug, Print to screen string passed in argument if debug level is reach #F01.06.02 #Function : myError, Store error in variables #F01.07.02 #Function : fileCheck, Check file for presence and permission #F01.08.02 #Function : fileCreate, Create file with permissions if asked #F01.09.01 #Function : fileDelete, Delete the specified file #F01.10.04 #Function : iniGetValue, Get the value from a specified INI file #F01.11.04 #Function : iniParseFile, Set all values from a specified INI file #F01.12.03 #Function : trim, Remove all blank from begining and end #F01.13.03 #Function : logRotate, Transfer the begining of a file to the rotationned version. #F01.14.01 #Function : logMe, Send the log to the log files #F01.15.01 #Function : logMeV, Send the log to the verbose log files #F01.16.03 #Function : isFunction, Verify that the function exists #F01.17.07 #Function : sprintf, return a formatted string #F01.18.02 #Function : ltrim, Remove all blank from begining #F01.19.02 #Function : rtrim, Remove all blank from end #F01.20.01 #Function : _str2lower, lower all characters #F01.21.01 #Function : _str2upper, upper all characters #F01.22.01 #Function : textFill, Create a text filled by the caracter #F01.23.03 #Function : textBox, Create a box around the text #F01.24.05 #Function : parseHeadersForHelp, Print headers of function for a given file #F01.99.02 #Function : F01Version, Return/Print version information #F01.23-1.02 #Function : _textBox4Bash, Create a box around the text</pre> <div class="footnotes"><h4>Notes</h4> <p>[<a href="http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26#rev-pnote-21-1" id="pnote-21-1">1</a>] Mes fonctions préférées sont sans aucun doute : <code>sprintf</code> et les <code>*trim</code>.</p></div> http://dev.flyou.net/post/2010/04/22/F01common.lib-v0.26#comment-form http://dev.flyou.net/feed/atom/comments/21 F01common.lib v0.22 urn:md5:4f89e4c349e1c30d131d3226a6c6efd9 2010-01-25T22:39:00+01:00 2010-01-26T00:00:25+01:00 Flyounet Outils & Développements bashF01common.libkshLinuxScriptShellUnix <p>Après plusieurs mois à codouiller<sup>[<a href="http://dev.flyou.net/post/2010/01/25/F01common.lib-v0.22#pnote-20-1" id="rev-pnote-20-1">1</a>]</sup> des petits bouts de script Shell, j'ai décidé d'en faire librairie&nbsp;: <strong>F01common.lib</strong>.</p> <p>J'ai tenté de la rendre la plus indépendante possible de <code>sed</code> et <code>awk</code> qui sont assez incontournable<sup>[<a href="http://dev.flyou.net/post/2010/01/25/F01common.lib-v0.22#pnote-20-2" id="rev-pnote-20-2">2</a>]</sup>. Elle fonctionne sous <a href="http://dev.flyou.net/tag/bash">bash</a> ou <a href="http://dev.flyou.net/tag/ksh">ksh</a>.</p> <p>Ci-dessous un aperçu des variables et fonctions&nbsp;: <img src="http://dev.flyou.net/public/F01common.lib/v0.22/.common.lib_v0.22_m.jpg" alt="common.lib_v0.22.png" style="display:block; margin:0 auto;" title="Liste des variables et fonctions" /></p> <p>En annexes sont fournis les fichiers indépendants, ainsi qu'une archive regroupant le tout.<br /> Les fichiers sont&nbsp;:</p> <ul> <li><code>common.lib.README</code>&nbsp;: Une micro documentation,</li> <li><code>common.lib_v0.22</code>&nbsp;: La librairie Shell,</li> <li><code>common.lib_v0.22.mm</code>&nbsp;: La liste de fonctions et variables sous forme de fichier Free(Mind|Plane),</li> <li><code>common.lib_v0.22.png</code>&nbsp;: La liste de fonctions et variables sous forme de fichier image,</li> <li><code>common.lib_v0.22.tar.bz2</code>&nbsp;: L'archive qui contient tous les fichiers,</li> <li><code>test_common-lib.conf</code>&nbsp;: Un fichier de configuration pour exécuter le script de test,</li> <li><code>test_common-lib.sh</code>&nbsp;: Un script de test, qui exécute quasiment toutes les fonctions de la librairie.</li> </ul> <p>Les md5 des fichiers&nbsp;:</p> <pre>16fc140f5a69acdcbe5e1a21be185772 common.lib.README 3f5c5a78a3bc2da85e86395d65b88188 common.lib_v0.22 31bd6704a048d38ba1479ec42a0e97b2 common.lib_v0.22.mm d273f4afd7a95aa8aa899e53f5dca904 common.lib_v0.22.png 1d0c7dd2ce3d264a14bfd442dadf0d24 common.lib_v0.22.tar.bz2 4c550b4593b12cd849af697313139e33 test_common-lib.conf 5520dd6882f166f4688ffef981187b41 test_common-lib.sh</pre> <p>Les sha1 des fichiers&nbsp;:</p> <pre>076770bedcfef3cc2568b0d00185c47a5c84ab89 common.lib.README b9f251ee69112e2357f716fac604f3bb3d73b627 common.lib_v0.22 b7cf30403aec92271678e14f79af9a4fd1f82df8 common.lib_v0.22.mm 30790cd148091e996415a5f620e5128feb40d986 common.lib_v0.22.png 832f5c6938657396f1361f80ebcb327f31956bd1 common.lib_v0.22.tar.bz2 7113349a4f5d1ddd74e790f4c2fa782ace0af949 test_common-lib.conf 7be004717f6ca2f9281955888c011ac6209b03e7 test_common-lib.sh</pre> <div class="footnotes"><h4>Notes</h4> <p>[<a href="http://dev.flyou.net/post/2010/01/25/F01common.lib-v0.22#rev-pnote-20-1" id="pnote-20-1">1</a>] Voir définition <a href="http://dev.flyou.net/post/2010/01/14/Mon-petit-environnement-IRC" hreflang="fr">ici</a>.</p> <p>[<a href="http://dev.flyou.net/post/2010/01/25/F01common.lib-v0.22#rev-pnote-20-2" id="pnote-20-2">2</a>] Mes fonctions préférées sont sans aucun doute : <code>sprintf</code> et les <code>*trim</code>.</p></div> http://dev.flyou.net/post/2010/01/25/F01common.lib-v0.22#comment-form http://dev.flyou.net/feed/atom/comments/20