Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to redirect TO stdout?

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 filename, which effectively redirects the output to nothing.

I would like to be able to redirect the output to stdout by a similar method. Is this possible? If so, how? I've tried the following with no luck:

a.out -f /dev/ttys000

(where /dev/ttys000 was the tty specified by a 'w' listing)

like image 297
Joshua Berry Avatar asked Dec 04 '22 15:12

Joshua Berry


1 Answers

/dev/stdout

like image 115
laalto Avatar answered Jan 05 '23 16:01

laalto