in reply to Re: STDOUT missing on Windows, works on Unix
in thread STDOUT missing on Windows, works on Unix

Are you implying the script isn't getting run? I can recreate the problem, and I've verified that it is getting run (by checking its exit code and having it touch a file) despite it's output going missing.
  • Comment on Re^2: STDOUT missing on Windows, works on Unix

Replies are listed 'Best First'.
Re^3: STDOUT missing on Windows, works on Unix
by BrowserUk (Patriarch) on Dec 13, 2008 at 12:46 UTC
    Are you implying the script isn't getting run?

    No! I'm stating that how it gets run is of prime importance to the cause of the problem and its solution.

    And that if you rely upon the windows "equivalent" of the unix shebang mechanism, it is enacted by the system shell, rather than by one of the system APIs. And that cannot be attributed to a 'bug' in windows, but simply a difference in the way the two platforms are designed to work.


    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.
Re^3: STDOUT missing on Windows, works on Unix
by abecher (Novice) on Dec 13, 2008 at 10:06 UTC
    I knew the script was getting run. My example was just as small a testcase as possible to illustrate what was happening. Adding the "$^X" inside the backticks solved the problem as you said. Of course, that's just the easy fix to running another perl script, but that's about all we do unless we're running an actual .exe of some kind (which falls into you're "binary so ok" category).
    Thanks again!
    Aaron