|
9 | 9 | </head>
|
10 | 10 | <body>
|
11 | 11 | <h1 id="chatscript-command-line-parameters">ChatScript Command Line Parameters</h1>
|
12 |
| -<p>Copyright Bruce Wilcox, gowilcox@gmail.com www.brilligunderstanding.com<br> <br>Revision 4/18/2021 cs11.3</p> |
| 12 | +<p>Copyright Bruce Wilcox, gowilcox@gmail.com www.brilligunderstanding.com<br> <br>Revision 6/6/2021 cs11.4</p> |
13 | 13 | <h1 id="command-line-parameters">Command Line Parameters</h1>
|
14 | 14 | <p>You can give parameters on the run command or in a config file or via a http request. The default config file is <code>cs_init.txt</code> at the top level of CS (if the file exists). A second file if present can add or override values - cs_initmore.txt And then third level named after the current language chosen can override those two cs_initenglish.txt being the default. The language one, in particular is useful to rebalance memory sizings (dictionary entries in particular) since foreign languages require more entries than English.</p>
|
15 | 15 | <p>Or you can name where the file is on a command line parameter <code>config=xxx</code>. And <code>config2=xxx</code> for the initmore file. If you have secret information that you don't want stored in a config file or exposed on a command line then you can request the config data from a URL. Use the command line parameter configurl=http://xxx to specify the address of the data. Additional command line parameters, configheader=xxx, can be included to define HTTP request headers. If there are several headers then use separate configheader=xxx configheader=yyy etc parameters for each header name/value pair.</p>
|
@@ -177,22 +177,26 @@ <h2 id="file-options">File options</h2>
|
177 | 177 | <td>Don't store a server log</td>
|
178 | 178 | </tr>
|
179 | 179 | <tr class="even">
|
| 180 | +<td><code>noretrybackup</code></td> |
| 181 | +<td>Don't save volley backup files for :retry when in standalone mode</td> |
| 182 | +</tr> |
| 183 | +<tr class="odd"> |
180 | 184 | <td><code>tmp=xxx</code></td>
|
181 | 185 | <td>name relative or absolute path to where you want the TMP folder to be. Do not add trailing <code>/</code></td>
|
182 | 186 | </tr>
|
183 |
| -<tr class="odd"> |
| 187 | +<tr class="even"> |
184 | 188 | <td><code>crashpath=xxx</code></td>
|
185 | 189 | <td>file to write about fatal Linux signals that will be outside of the cs folder <code>/</code></td>
|
186 | 190 | </tr>
|
187 |
| -<tr class="even"> |
| 191 | +<tr class="odd"> |
188 | 192 | <td><code>windowsbuglog=xxx</code></td>
|
189 | 193 | <td>names a WINDOWS directory to replicate the BUGS.txt log file outside of the CS directory area</td>
|
190 | 194 | </tr>
|
191 |
| -<tr class="odd"> |
| 195 | +<tr class="even"> |
192 | 196 | <td><code>linuxsbuglog=xxx</code></td>
|
193 | 197 | <td>names a LINUX directory to replicate the BUGS.txt log file outside of the CS directory area</td>
|
194 | 198 | </tr>
|
195 |
| -<tr class="even"> |
| 199 | +<tr class="odd"> |
196 | 200 | <td><code>Vcs_new_user="text"</code></td>
|
197 | 201 | <td>if input has given text within it, treat user as new and dont read the topic file</td>
|
198 | 202 | </tr>
|
@@ -291,9 +295,16 @@ <h2 id="execution-options">Execution options</h2>
|
291 | 295 | <td><code>crnl_safe</code></td>
|
292 | 296 | <td>tells system it does not need to search for cr or nl to remove from inputs.</td>
|
293 | 297 | </tr>
|
| 298 | +<tr class="odd"> |
| 299 | +<td><code>blockapitrace</code></td> |
| 300 | +<td>disables any %trace_on in ^testpattern and ^testoutput. Used for production servers.</td> |
| 301 | +</tr> |
| 302 | +<tr class="even"> |
| 303 | +<td><code>traceboot</code></td> |
| 304 | +<td>turns on tracing while cs_boot is running at startup</td> |
| 305 | +</tr> |
294 | 306 | </tbody>
|
295 | 307 | </table>
|
296 |
| -<p>crnl_safe</p> |
297 | 308 | <p>Trustpos is normally off by default because CS is only about 94% accurate in its built-in pos-tagging. So it prefers to wrongly match by allowing all pos values Of a word rather than miss a match. Ergo concept: <sub>all(feel</sub>n) will match any use of "feel" rather than just noun meaning. But combining CS with Treetagger for english (if you license it) is better at pos-tagging than either alone, making it competitive with the best taggers in the world.</p>
|
298 | 309 | <p>Here few command line parameters usage examples of usual edit/compile developement phase, running ChatScript from a Linux terminal console (standalone mode):</p>
|
299 | 310 | <p>Rebuild <em>level0</em> (compiling system ChatScript files, listed usually in file <code>files0.txt</code>):</p>
|
@@ -447,6 +458,7 @@ <h2 id="logging-or-not">Logging or Not</h2>
|
447 | 458 | <p>The server log will be put into the LOGS directory under serverlogxxx.txt where xxx is the port.</p>
|
448 | 459 | <p>The bugs log is in the same directory under bugs.txt (all ports).</p>
|
449 | 460 | <p>The server log records all transactions by all users in order of arrival. Whereas the user log records transactions by user/bot.</p>
|
| 461 | +<p>The server log can be written regardless of whether CS is running in server mode or not.</p> |
450 | 462 | <pre><code>Noserverprelog</code></pre>
|
451 | 463 | <p>Normally CS writes of a copy of input before server begins work on it to server log. Helps see what crashed the server (since if it crashes you get no log entry). This turns it off to improve performance.</p>
|
452 | 464 | <pre><code>serverlogauthcode=xxxxx</code></pre>
|
|
0 commit comments