in reply to Re^2: WIN redirecting STDOUT and STDIN to new spawned CMD console
in thread WIN redirecting STDOUT and STDIN to new spawned CMD console
Well with variations it's just a classic.
You start a second console running the application redirecting STDERR to a log file. The first console does a tail -f on the log-file
With PowerShell in the first window at least that's technically feasible, it has a tail like mechanism. °
> Perhaps better with a named pipe
Not sure how hard it is to have named pipes on windows.
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
°) Get-Content -Path ".\err.log" -Wait
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: WIN redirecting STDOUT and STDIN to new spawned CMD console
by soonix (Chancellor) on Mar 29, 2023 at 08:19 UTC | |
by bliako (Abbot) on Mar 29, 2023 at 10:35 UTC |