# Capture output from Execute program action?

**URL:** https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208
**Category:** Discussion
**Created:** [October 9, 2013, 12:21pm UTC](https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208 "2013-10-09T12:21:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![efridman](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@efridman](https://www.finalbuilder.com/forums/u/efridman)
#### Post date: [October 9, 2013, 12:21pm UTC](https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208/1 "2013-10-09T12:21:32Z")

</div>

Hi

&nbsp;I’m running an Execute program action now I want to capture the output of the action, How can I do that ?

&nbsp;

---

<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: [October 10, 2013, 7:37am UTC](https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208/2 "2013-10-10T07:37:16Z")

</div>

FinalBuilder automatically logs the anything written to stdout or stderr. If by capture you mean extract to a file the you can log to a variable and then write the variable value to a file,

Attachment unavailable

---

<div class="post-metadata">

### Author: ![efridman](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@efridman](https://www.finalbuilder.com/forums/u/efridman)
#### Post date: [October 10, 2013, 12:16pm UTC](https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208/3 "2013-10-10T12:16:12Z")

</div>

This is what I was doing but I just saw that the output of the exe I’m running have several lines but the last line ( the one I’m interested in ) may contain %,   
 this is why when I tried to use a variable ( like the example you sent me ) in a message box the message box was empty.   
 Is there an easy way using iterator ( although lines may include % ) getting the last line or I will just use a script ?

---

<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: [October 10, 2013, 2:13am UTC](https://www.finalbuilder.com/forums/t/capture-output-from-execute-program-action/2208/4 "2013-10-10T02:13:39Z")

</div>

You need to disable recursive variable evaluation when using the variable : [http://help.finalbuilder.com/variable\_evaluation\_and\_recurs.htm](http://help.finalbuilder.com/variable_evaluation_and_recurs.htm)
