Hi,
We have a need to send different emails (subject, body and attachments) based on a file condition.
We have a simple sequence job with a Execute Command Activity with two links both going to Notification Stages.
The command is: "wc -l"
with the following as the parameter:
"D:\CRM\work_files\Paris_ctr.txt" | awk '{ printf "%s", $1 }'
The Dslink10 trigger is:
Expression Type: ReturnValue - (Conditional)
Expression: >0
The Dslink14 trigger is:
Expression Type: Otherwise
Expression: N/A
No matter what is returned from the command we always go to the Otherwise DsLink14
When I check the director Log I see the appropriate output:
TestingSequnceConditions_1..JobControl (@Execute_Command_12): Executed: wc -l "D:\CRM\work_files\Paris_ctr.txt" | awk '{ printf "%s", $1 }'
Reply=0
Output from command ====>
1
Since 1 is > 0, We were thinking we should go to the conditional Dslink10 but we always go to the otherwise link regardless of the output.
Any thoughts why we are seeing this behavior.
Thanks - - John
Problem with triggers in the Execute Command Activity stage
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 306
- Joined: Wed Jun 21, 2006 11:41 am
Re: Problem with triggers in the Execute Command Activity st
Hi
You given just > 0
or
Activity variable, stagename.$CommandOutput > 0
You given just > 0
or
Activity variable, stagename.$CommandOutput > 0
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 306
- Joined: Wed Jun 21, 2006 11:41 am