|
-
Feb 9th, 2011, 08:29 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Continously get output of a command line program
How can I run an external command line program and capture its output to a textbox? I've found how to run an external program until it ends and get all the output, but this is not what I want to do. This external program is a server and I would like to be able to parse each new thing it spits out. For example, the server might start up. Then a few minutes later it might spit out "Blahblah logged in." I would like to be able to parse this text with my C# program. Then I would like to be able to output to the command line program "tell blahblah Welcome back!"
So I suppose I have two questions. How do I monitor a program's output, and how do I input to that program?
Ninja Edit: Found this thread from only a few days ago. Only problem is, I can't translate the vb code I can't even get past
Code:
Private WithEvents MyProcess As Process
Last edited by half flung pie; Feb 9th, 2011 at 08:50 PM.
Reason: derp.
 Base 2
Fcnncu"Nqxgu"Lguug##
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|