WebSphere MQ バージョンを検出するスクリプトを実行しています。このバージョンが 7.1 の場合は、runmqsc
チャネル認証を設定するために実行します。私はこれをします:
<if>
<or>
<os name ="AIX">
<os name ="Linux">
</or>
<then>
<loginfo>Checking the installed MQ version.</loginfo>
<osexec commandbase="su" dir="/bin" mode="osexec">
<args>
<arg value="-"/>
<arg value="- ${mq_admin_name}"/>
<arg value="-c"/>
<arg line="dspmqver | grep Version"/>
</args>
</osexec>
<if>
<not>
<not>
<contains casesensitive="yes" substring="7.1.0.0" string="${result.output}"/>
</not>
</not>
<then>
...........
..........
この後、runmqsc
. しかし、問題は文字列{result.output}
が空であることです。dspmqver
コマンドが正しく実行されていません..誰かが理由を提案できますか?