in reply to capturing command output

Two aspects you might want to consider

In my projects, I have no real preference. I typically decide it case-base-case based on the "feeled risk of needing debugging info"

HTH, Rata

Update: Oooops! I have overlooked the pipe-symbol. So please ignore my answer above! Thanks for pointing this out, BrowserUk!

Replies are listed 'Best First'.
Re^2: capturing command output
by BrowserUk (Patriarch) on Jan 25, 2012 at 10:23 UTC

    The code is not writing to a temporary file. The external process is writing directly to a pipe which is then read in the while loop.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?