in reply to Calling Command That Expects a File Without Creating a File

If you replace the content of "$filename" with CON: (for Windows), or /dev/stdout (for Linux), the output will go to STDOUT.

That can then be redirected, or piped, at will.

             All great truths begin as blasphemies.
                   ― George Bernard Shaw, writer, Nobel laureate (1856-1950)

  • Comment on Re: Calling Command That Expects a File Without Creating a File