Hi
In the sequence trigger i'm specifying when the script output is "ERR-0099" by Execute_Command_0.$CommandOutput='ERR-0099'
But the trigger is not getting activated even when i see in logs messages like this
Output from command ====>
ERR-0099
Trigger in sequence not recognising the command output
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
Re: Trigger in sequence not recognising the command output
check for any unwanted character in the outputmouni wrote:Hi
In the sequence trigger i'm specifying when the script output is "ERR-0099" by Execute_Command_0.$CommandOutput='ERR-0099'
But the trigger is not getting activated even when i see in logs messages like this
Output from command ====>
ERR-0099
you can also try a combiation of field and convert functions.
Code: Select all
field(convert(@FM,',', Execute_Command_0.$CommandOutput),',',1)='ERR-0099'
Last edited by priyadarshikunal on Tue Nov 25, 2008 3:11 am, edited 1 time in total.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
Re: Trigger in sequence not recognising the command output
check for any unwanted character in the outputmouni wrote:Hi
In the sequence trigger i'm specifying when the script output is "ERR-0099" by Execute_Command_0.$CommandOutput='ERR-0099'
But the trigger is not getting activated even when i see in logs messages like this
Output from command ====>
ERR-0099
you can also try a combiation of field and convert functions.
Code: Select all
field(convert(@FM,',', Execute_Command_0.$CommandOutput),',',1)='ERR-0099'
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
That's kind of overkill, one or the other should work but the basics are sound. The output is a dynamic array and what you are not seeing (or taking into account) are the Field Marks between the elements. Either remove them or just check the first element. Some examples below, not an exhaustive list.
I prefer the last one.
Code: Select all
Convert(@FM,'',Execute_Command_0.$CommandOutput)='ERR-0099'
Field(Execute_Command_0.$CommandOutput),@FM,1,1)='ERR-0099'
Execute_Command_0.$CommandOutput<1>='ERR-0099'
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers