From 63432b95f49385c5e3df2727b7682bcca3c366ee Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 20 Dec 2005 08:29:48 +0000 Subject: [PATCH] Added $shell() substitution SVN revision: 1581 --- doc/config.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/config.html b/doc/config.html index 65f13803..eaf71344 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1063,11 +1063,21 @@ text. This text can contain arbitrary fixed text and following values:
  • $logbook: The name of the current logbook
  • $date: The current date, formatted via "Date format"
  • $utcdate: The current UTC date (GMT) and time, formatted via "Date format" +
  • $shell(<command>): <command> gets passed to the operating system shell + and the result is taken for substitution.
    Following example use this feature to add the remote host name to the author:
    Subst Author = $author from $remote_host
    +
    + +Following example substitutes an attribute with the contents of a file: +
    +
    +  Subst Info = $shell(cat /tmp/filename)              (Unix)
    +  Subst Info = $shell(type c:\tmp\filename)           (Windows)
    +

  • Remove on reply = <list>