in reply to STDOUT missing on Windows, works on Unix

I really need windows to do the same thing unix does...

Hm.

  1. Does /usr/bin/perl exist on your windows system(s)?
  2. Have you installed something on those windows systems that attempts to determine which executable should be used to process a data file by inspecting the first line of that file?

If your answer is no to either, it is your expectations that are buggy, not the systems you are using.


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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: STDOUT missing on Windows, works on Unix
by ikegami (Patriarch) on Dec 13, 2008 at 09:25 UTC
    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.
      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.
      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
A reply falls below the community's threshold of quality. You may see it by logging in.