Problem with console programs using standard input

Hi

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

A script runs an internal application that reads from standard input - at the same time it run macros that write data to stdin, to feed 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?

 

Regards,

Magnus

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).