in reply to Redirect file write from external program to STDOUT

You must know the name of the output file? So, if all else fails, make a copy of the program, open in a binary editor (or even using a perl script), and edit the string holding the output file name to /dev/tty or CON.

If the output filename is shorter than the terminal device name on your OS, then this probably won't work.

Don't forget to null terminate the string. And please make a copy first:)


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:40 UTC
    That's creative.