<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;">I think I've got it. </div><div style="margin: 0;">The version info part in install-corpus.php says: "This script tracks the install-corpus form." If we look at what happens when we submit that form to the server (in Chrome F12 will do the job), the url link explains everything.</div><div style="margin: 0;">Problem solved.</div><div style="margin: 0;"><br></div><div style="position:relative;zoom:1"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Best,<br></span><span style="color: rgb(0, 0, 0);">WU Liangping</span></span></span></span><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><br></span></span> <div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><p style="margin: 0;"><br></p><p>At 2021-07-26 14:21:53, "wu liangping" <liangpingwu@126.com> wrote:</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin:0;">Dear all,</div><div style="margin:0;"><br></div><div style="margin:0;">Installing a corpus anew from the command line without clikcing around is such an attracitve option in terms of efficiency (and automation), so the install-corpus.php story here.</div><div style="margin:0;"><br></div><div style="margin:0;">I have a tiny (experimental) corpus test.txt with only two columns:</div><div style="margin:0;"><pre><text id="sample">
<s>
I        I
am        am
just        just
a        a
testing        testing
line        line
.        .
</s>
<s>
I        I
am        am
just        just
another        another
testing        testing
line        line
.        .
</s>
</text>
</pre><pre>The test.txt file has been uploaded to cqpweb's upload area, and the XmlTemplate and AnnotationTemplate have also been defined from the CQPweb GUI, and finally I run the following command from /path/to/cqpweb/bin:</pre><pre>php install-corpus.php --corpus_name="test" --corpus_description="a test corpus" --cssBuiltIn="blue.css" --corpus_charset="utf8" --useXmlTemplate=2 --useAnnotationTemplate=6 --file="test.txt"</pre><pre>However, it keeps saying that "You must specify at least one file to include in the corpus!" (my CQPweb version is 3.2.43)</pre><pre>My first guess is that something might be wrong with the format of the parameters specified. According to the online documentation, --file would expect a "list" of files (at least one file is required). However, I tried different combinations but without luck.</pre><pre>Any hint? </pre><pre>Thanks for any input.</pre></div><div style="position:relative;zoom:1"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Best,<br></span><span style="color: rgb(0, 0, 0);">WU Liangping</span></span></span></span><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><br></span></span> <div style="clear:both"></div></div></div></blockquote></div>