HI
I’m struck-ling with something similar to this:
I’m try to find a specific string in at file:
<MultipleInstance>
<Iterator name="file_list" export="false">
<FindFilePathEx name="tq.ini" />
</Iterator>
<Instance>
<Variable name="file_read" export="false">
<ReadFile path="$(file_list)tq.ini" />
</Variable>
<Variable name="IS_INSTALLED">
<Compare type="string" relation="ne">
<VectorToScalar>
<Vector filter="Data">
<ValueOf value="$(file_read)" />
</Vector>
</VectorToScalar>
<ValueOf value="" />
</Compare>
</Variable>
<Condition withVariable="IS_INSTALLED">
<Action onValue="false" do="SKIP" />
</Condition>
</Instance>
</MultipleInstance>
and I try to test it with this:
/wscansw -i extended_signature_test_tq.xml -o output.xml -e warning.xml
the only output I get in both files is:
<?xml version="1.0" encoding="UTF-8"?>
the file is placed in:
/opt/teamquest/manager/etc/
and it contains this:
[Database]
Data Directory=/opt/teamquest/data