mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added $shell() substitution
SVN revision: 1581
This commit is contained in:
parent
9b421de0f7
commit
63432b95f4
@ -1063,11 +1063,21 @@ text. This text can contain arbitrary fixed text and following values:
|
|||||||
<LI><b>$logbook</b>: The name of the current logbook
|
<LI><b>$logbook</b>: The name of the current logbook
|
||||||
<LI><b>$date</b>: The current date, formatted via "<I>Date format</I>"
|
<LI><b>$date</b>: The current date, formatted via "<I>Date format</I>"
|
||||||
<LI><b>$utcdate</b>: The current UTC date (GMT) and time, formatted via "<I>Date format</I>"
|
<LI><b>$utcdate</b>: The current UTC date (GMT) and time, formatted via "<I>Date format</I>"
|
||||||
|
<LI><b>$shell(<command>)</b>: <command> gets passed to the operating system shell
|
||||||
|
and the result is taken for substitution.
|
||||||
</UL>
|
</UL>
|
||||||
<br>
|
<br>
|
||||||
Following example use this feature to add the remote host name to the author:
|
Following example use this feature to add the remote host name to the author:
|
||||||
<br>
|
<br>
|
||||||
<pre>Subst Author = $author from $remote_host</pre>
|
<pre>Subst Author = $author from $remote_host</pre>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
Following example substitutes an attribute with the contents of a file:
|
||||||
|
<br>
|
||||||
|
<pre>
|
||||||
|
Subst Info = $shell(cat /tmp/filename) (Unix)
|
||||||
|
Subst Info = $shell(type c:\tmp\filename) (Windows)
|
||||||
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<LI><b><code>Remove on reply = <list></code></b>
|
<LI><b><code>Remove on reply = <list></code></b>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user