Page 1 of 1

Running console programs managing its stdin and stdout

Posted: Tue Feb 23, 2021 1:24 pm
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 ?

Re: Running console programs managing its stdin and stdout

Posted: Tue Feb 23, 2021 7:45 pm
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.