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:)
|
|---|
| 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 |