Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capturing output stream from console app
#1
Hi Gintaras,
We have a monitoring app that outputs a continuous stream to a cmd console window.
Using Console2

Macro ReadCmdOutput
Code:
Copy      Help
str commandLine = "C:\SampleMonitoringApp.exe"
RunConsole2(commandLine)

I was able to capture some of the output but only when it exits.
But I need to capture it continuously a line at a time. I will process it in real time as the line comes up (parse, trigger or store to file)
Is there an easy way to do this from QM?

Something like streamreader like in this link but in QM
http://stackoverflow.com/questions/28576...out-in-net

Thanks!!!
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)