# Problem with console programs using standard input

**URL:** https://www.finalbuilder.com/forums/t/problem-with-console-programs-using-standard-input/1115
**Category:** Discussion
**Created:** [February 25, 2009, 4:24am UTC](https://www.finalbuilder.com/forums/t/problem-with-console-programs-using-standard-input/1115 "2009-02-25T04:24:06Z")
**Posts on this page:** 2
**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: [February 25, 2009, 4:24am UTC](https://www.finalbuilder.com/forums/t/problem-with-console-programs-using-standard-input/1115/1 "2009-02-25T04:24:06Z")

</div>

Hi

We have a couple of tasks in our software production chain where we have following situation:

A script&nbsp;runs an internal&nbsp;application that reads from standard input - at the same time it run&nbsp;macros that&nbsp;write data to stdin, to feed&nbsp;the application with necessary info.

When running this script in FinalBuilder 6 it looks like the data never get to the application. It looks like FB mix the consoles and input/output streams so it all end up in a mess. What should have been written in a file, ends up in the Live Log View etc.

Does anyone have similar experiences and does anyone have a solution for this?

&nbsp;

Regards,

Magnus

---

<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: [February 26, 2009, 1:02am UTC](https://www.finalbuilder.com/forums/t/problem-with-console-programs-using-standard-input/1115/2 "2009-02-26T01:02:53Z")

</div>

Hi Magnus   
  
 FinalBuilder doesn’t currently support redirecting StdIn very well… mostly because we have never gotten it to work reliably. For some reason when ever we redirect std in to a pipe (to allow us to talk to it), the std out pipe behaves strangely. What we do have working (and is used by some actions) is the ability to pass a file to stdin, however I just discovered that it isn’t exposed to the Execute Program Action (most likely just an oversight). I have just exposed the InputFile property on the action (only on the action inspector), I’ll post a link to a build with that here later today (once our daily build has uploaded).
