1

What I have:

Two console applications (target framework 4). Application A does all the work, B displays status every 10 seconds. A runs through nearly 300,000 sql entries and performs miscellaneous work - output is most verbose and its hard to squeeze in general overview information about progress.

What I need:

My goal would be to have A first execute B and then "send" or pass strings over to B so that it can refresh itself with the new values of those strings. It would provide the user who is observing a good indication of what's going on with the whole operation.

What do you recommend to accomplish this. WCF, named pipes? I guess I could make app A the server and app B a client of some sorts.

Visual example: note that application A has about 10x more text (picture is just example)

http://metroidcoven.com/idea.PNG

4
  • 3
    Why have 2 apps? Why not multithread it and just update A? Commented Oct 11, 2012 at 15:53
  • Do you plan on having multiple B 's attach to a single A? Or have B be on a different machine? Commented Oct 11, 2012 at 15:53
  • There will only be a single A and single B - they both will exist in the same directory (local communication only). There will not be multiple instances launched. I am about to update the original question with a better explanation. Commented Oct 11, 2012 at 15:57
  • Mupltiple instances of A or B? Commented Oct 11, 2012 at 16:06

2 Answers 2

0
  • Make B first execute A.
  • A write its verbose logging to standard output.
  • B reads A's standard output (google how you can redirect input/output/err of a process)
  • B aggregate information and write a clean log on its standard output.
  • When A exits, B exits too.

Simple !

Sign up to request clarification or add additional context in comments.

Comments

0

When one process is spawning another, it can obtain its Standard Input/Output streams, so that you can read, write:

http://www.dotnetperls.com/redirectstandardoutput

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.