Getting messages from other application with asp.net web site

lucasnv

New Member
Here's the scenario:I have an asp.net website that executes an app (not written by me) with batch capabilities, using System.Diagnostics.Process. The app runs a time consuming task and i would like to display a description of currently executed step on the website. How to achieve this? I have an idea but i'm not sure it would be right. I thought about writing descriptions with the app to a file and reading it asynchronously with the website using ajax.However i have few concerns:
  • is there a way to prevent from reading a not completely written line?
  • it would be ideally to read when file is modified, but i don't think i can detect that. Maybe reading from file every x seconds, but on the other hand it could overload the server.
 
Back
Top