in reply to Redirect file write from external program to STDOUT

Do you get to specify the name of the output file? Either through a configuration file or the command line?

If so, you might be able to specify the name of the terminal device, con under WIn32 or /dev/tty? under *nix and that should give you what you want.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


  • Comment on Re: Redirect file write from external program to STDOUT

Replies are listed 'Best First'.
Re: Re: Redirect file write from external program to STDOUT
by chunlou (Curate) on Jun 26, 2003 at 14:31 UTC
    I can specify the name of the output file. I get to select the name of printer if I choose to print. "Terminal device" for STDOUT is what I can't find with the program. I'm using Win32. Thanks.

      In that case, specify the name as "CON" (without the quotes of course. Let us know if it works:)


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


        Close enough. The program dumped stuff directly to DOS console (not via Perl's print). But the stuff looked like 'characters', not binary. Thanks still.