Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How to make Subst run?, posted by Robert Heine on Thu Aug 26 15:37:20 2010 
    icon2.gif   Re: How to make Subst run?, posted by Andreas Luedeke on Fri Sep 3 14:14:07 2010 
       icon2.gif   Re: How to make Subst run?, posted by Robert Heine on Mon Sep 6 16:18:41 2010 
Message ID: 66884     Entry time: Thu Aug 26 15:37:20 2010     Reply to this: 66888
Icon: Question  Author: Robert Heine  Author Email: heine@kph.uni-mainz.de 
Category: Question  OS: Windows  ELOG Version: 2.8.-2312 
Subject: How to make Subst run? 
Dear colleagues,

I tried to get an Subst <attrib> = $shell(<command>) to work and put this into a Preset text line, like e.g.:
Attributes = subject, ... 
Options <name> = test{1}, ...  

Subst myvar = $shell(dir) 
{1} Preset subject = Test 
{1} Preset text = $myvar 

Which results in an ELOG-entry having printed "$myvar" in its body instead of the expected substitution. Changing the Subst command to: "Subst myvar = $host" or even to "Subst myvar = Test" also resulted in printing just the string "$myvar" into the submitted Elog-entry. - What am I doing wrong?

Best whishes

Robert
ELOG V3.1.5-fe60aaf