Menu

#44 Windows and pipe is not always working

open
nobody
None
5
2025-01-30
2013-06-26
Mario Fetka
No

is it possibel to get 2 new commandline options -i --input and -o --output
so that we dont have to ue the > pipe on windwos that sometimes don't work

Discussion

  • Noam Postavsky

    Noam Postavsky - 2013-12-29

    When does piping not work on Windows? It's always worked for me. If a redirect doesn't work, I don't know that doing the redirect inside the program will necessarily fix it...

     
  • Herbert Hippler

    Herbert Hippler - 2024-11-25

    Hi,
    Windows 11 Pro, piping doesn't work at all.
    E.G.: xml val -e -s abc.xsd xyz.xml>result.txt
    In result.txt I have the result (e.g. xyz.xml - invalid) but the other output (xyz.xml🔢20 Element...) is only to see in the cmd-box.
    I wanted to interpret the output (for example jump directly to the appropiate line).
    With the already mentiones options (-o or --output) the program could open a file instead of stdout.
    Is there a chance?

     
  • Herbert Hippler

    Herbert Hippler - 2025-01-30

    I found a solution: In my example above, I have added the redirection from stderr to stdout!
    xml val -e -s abc.xsd xyz.xml > result.txt 2>&1
    "2>&1" does the job!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.