I have a UNIX application written in ansi C that writes data directly to a file. This file is specified by one of the argument parameters.
For testing purposes, I can use / dev / null for the file name, which actually redirects the output to nothing.
I would like to be able to redirect the output to stdout using a similar method. Is it possible? If so, how? I tried the following with no luck:
a.out -f / dev / ttys000
(where / dev / ttys000 is the tty specified in the 'w' list)
source share