Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Invoking Console Application at runtime

Invoking Console Application at runtime

Scheduled Pinned Locked Moved C#
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aryadip
    wrote on last edited by
    #1

    Hey guys, I would like to know if there is any way by which I can capture the output of an console application before it exits. I have an console application which runs continuously and never exits unless killed. While running it generates output on the action done on a perticular file. That is it keeps a watch on a perticular file. I want to capture those console outputs real time. But the problem is StandardOutput property of the System.Diagnostics.Process class doesn't work till the called process exits from the Main. If anybody has any solution then please let me know. thanks in advance... Aryadip Guha Niyogi Cheers !! and have a Funky day !!

    L 1 Reply Last reply
    0
    • A Aryadip

      Hey guys, I would like to know if there is any way by which I can capture the output of an console application before it exits. I have an console application which runs continuously and never exits unless killed. While running it generates output on the action done on a perticular file. That is it keeps a watch on a perticular file. I want to capture those console outputs real time. But the problem is StandardOutput property of the System.Diagnostics.Process class doesn't work till the called process exits from the Main. If anybody has any solution then please let me know. thanks in advance... Aryadip Guha Niyogi Cheers !! and have a Funky day !!

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You can always use good old redirection (i dunno if process supports this however) eg my.exe >> myexe.log, and then use a 'tail' util to monitor the output.

      top secret AdvancedTextBox

      A 1 Reply Last reply
      0
      • L leppie

        You can always use good old redirection (i dunno if process supports this however) eg my.exe >> myexe.log, and then use a 'tail' util to monitor the output.

        top secret AdvancedTextBox

        A Offline
        A Offline
        Aryadip
        wrote on last edited by
        #3

        Hi Leppie, Thanks man... I made it possible, actually there was some problem with the invoked application. thanks again. regards, Aryadip Cheers !! and have a Funky day !!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups