# Allow Output Monitor to Abort Action

**URL:** <https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154>\
**Category:** Feature Requests\
**Created:** [June 9, 2011, 3:39am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154 "2011-06-09T03:39:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 9, 2011, 3:39am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/1 "2011-06-09T03:39:08Z")

</div>

This was actually already requested by one Dave Bozier back in 2009: [Execute Program: add Abort string](https://www.finalbuilder.com/Default.aspx?tabid=456&aft=9070#9862)

It would be really nice to be able to tell the Action Output Monitor to not only _Fail action if ..._ but to actually _ **Fail&Abort action if ...** _ because when you hav a long-running external executable it really doesn't make sense to wait on it once it has been determined to have failed via its logging output.

(I have checked with FB7 and I have found no workaround for this problem neither via the Script Actions nor anything in Action Studio.)

Do you have any plans for this? Can it be achieved via a Script Event or via a custom Action created in ActionStudio?

cheers,  
Martin

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 10, 2011, 1:46am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/2 "2011-06-10T01:46:01Z")

</div>

It’s a good idea, I’ll add it to the todo list. I don’t believe it can be done via script as we don’t fire any events when the output monitors are run (too much overhead).

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [June 15, 2011, 8:13am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/3 "2011-06-15T08:13:04Z")

</div>

> Posted By Vincent Parrett on 10 Jun 2011 06:46 AM   
> It's a good idea, I'll add it to the todo list. I don't believe it can be done via script as we don't fire any events when the output monitors are run (too much overhead).

&nbsp;

Thanks!

I didn't mean an event for the output monitor. As far as I can tell, when running an executable it would theoretically be possible to implement an output monitor myself in the script action as there is a callback for each logged line (OnStatusMessage event) and I could just fail the Action there.

It is however not possible (you do not expose a script function or the neccessary info) to abort/kill the process that was spawned by finalbuilder.

Maybe it would make sense to make the Process ID/Handle of the external process availabe to the action. This way it would be possible to interact with the process from the script. (e.g., kill it via vbscript/WMI)

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 17, 2011, 9:33am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/4 "2011-06-17T09:33:52Z")

</div>

Steve got this working today with output monitors, still need to do some more testing but we should be able to include it in a build next week.

---

<div class="post-metadata">

**Author:** ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)\
**Post date:** [June 20, 2011, 5:30am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/5 "2011-06-20T05:30:24Z")

</div>

Hi Martin   
  
 This feature is available in the following build:   
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1355.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1355.exe)   
  
 To use this feature, add an output monitor and set the behaviour to ‘Terminate action if match found’.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

**Author:** ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)\
**Post date:** [June 22, 2011, 6:02am UTC](https://www.finalbuilder.com/forums/t/allow-output-monitor-to-abort-action/4154/6 "2011-06-22T06:02:31Z")

</div>

Sorry posted the wrong build. This includes the feature:   
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1362.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1362.exe)   
  
 Regards,   
 Steve
