Running console programs managing its stdin and stdout

Feature requests for future versions of Hollywood can be voiced here
Post Reply
domenikov
Posts: 8
Joined: Fri May 19, 2017 10:27 pm

Running console programs managing its stdin and stdout

Post by domenikov »

Programming GUI for console programs, can be very useful to access their standard input/output.
Until now, I solved piping a text file in input, and redirecting program output on a text file, but this have two problems:

- All input must be sent at launch of console program, I need to send command strings some time after the launch, also;
- Output must be read at end of its execution, I need to read it when is generated.

Is possibile to act on Run() and Execute() commands, so to add control over stdin,stdout,stderr ?

User avatar
airsoftsoftwair
Posts: 4495
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Running console programs managing its stdin and stdout

Post by airsoftsoftwair »

The next Hollywood version will feature some improvements here. There will be a "RunOutput" event handler allowing you to catch a program's output while it is running and there'll also be facilities to open stdin/stdout/stderr. See here and here for details.

Post Reply