I'm using a 3rd party tool A
which launches a long-running (weeks) console application B
and catches the console output then display it. Unfortunately, the main application has a tendency to crash meaning it's no longer possible to monitor B
.
I'd prefer not to restart B
if it's been running for a while, but I need to know how it is progressing.
Ideally I'd like to write a really simple app that displays the console output of B
(preferably .Net but anything that runs on Windows will do).
Is this possible for a process you haven't launched? If so, how?