|
Lines 23-29
Link Here
|
| 23 |
|
23 |
|
| 24 |
<refsynopsisdiv> |
24 |
<refsynopsisdiv> |
| 25 |
<cmdsynopsis> |
25 |
<cmdsynopsis> |
| 26 |
<command>koha-foreach</command> <arg><option>--enabled</option></arg> <arg><option>--email</option>|<option>--noemail</option></arg> <arg><option>command</option></arg> |
26 |
<command>koha-foreach</command> <arg><option>--chdir</option></arg> <arg><option>--enabled</option></arg> <arg><option>--email</option>|<option>--noemail</option></arg> <arg><option>command</option></arg> |
| 27 |
</cmdsynopsis> |
27 |
</cmdsynopsis> |
| 28 |
</refsynopsisdiv> |
28 |
</refsynopsisdiv> |
| 29 |
|
29 |
|
|
Lines 31-37
Link Here
|
| 31 |
<para>Run a command for each Koha instance. Takes the same arguments as koha-list.</para> |
31 |
<para>Run a command for each Koha instance. Takes the same arguments as koha-list.</para> |
| 32 |
<para>The string "__instancename__" is replaced in the argument list with the name of the Koha instance in each iteration.</para> |
32 |
<para>The string "__instancename__" is replaced in the argument list with the name of the Koha instance in each iteration.</para> |
| 33 |
</refsect1> |
33 |
</refsect1> |
| 34 |
|
34 |
|
|
|
35 |
<refsect1> |
| 36 |
<title>Options</title> |
| 37 |
<variablelist> |
| 38 |
<varlistentry> |
| 39 |
<term><option>--chdir</option></term> |
| 40 |
<listitem> |
| 41 |
<para>This option makes the command jump into the instance's home directory before running the required command. This prevents |
| 42 |
directory traversal permissions issues.</para> |
| 43 |
</listitem> |
| 44 |
</varlistentry> |
| 45 |
</variablelist> |
| 46 |
</refsect1> |
| 47 |
|
| 35 |
<refsect1><title>See also</title> |
48 |
<refsect1><title>See also</title> |
| 36 |
<simplelist type="inline"> |
49 |
<simplelist type="inline"> |
| 37 |
<member><command>koha-create-dirs(8)</command></member> |
50 |
<member><command>koha-create-dirs(8)</command></member> |