0

I want to run in Linux (mono, app in C#) a background console app written in C and get (for example as string) back the line which begins with the string "Temperature".

I am starting the temper process using System.Diagnostic.Process and RedirectStandadOutput, but I receive only an empty console window with no text - when I run manually temper in terminal, everything is working ok.

Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
user1762186
  • 190
  • 2
  • 6
  • 16
  • Can you show your code where you RedirectStandardOutput? You have to make sure you do something with that output.. (such read it to a string, then write it to the console) Without the code, we can't see what you're doing wrong. – Baldrick Feb 28 '14 at 13:54
  • 1
    If you redirect standard out then yes, you're console window will show no text - it's been redirected (by you!!). Now you just need to read it from the place you redirected it to (as @Baldrick says - show us the code). – RB. Feb 28 '14 at 13:56
  • This answer here might be helpful: http://stackoverflow.com/a/1146030/2609288 – Baldrick Feb 28 '14 at 14:03

0 Answers0