Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16797

How do we intercept file saving or output to stdout directly

From almahdi <budikusasi@gmail.com>
Newsgroups gnu.bash.bug
Subject How do we intercept file saving or output to stdout directly
Date 2020-08-23 23:17 -0700
Message-ID <mailman.936.1598249862.2469.bug-bash@gnu.org> (permalink)
References <1598249852364-0.post@n7.nabble.com>

Show all headers | View raw


How do we intercept and redirect file saving or output to stdout directly in
bash, just like e.g

xkbcomp $DISPLAY

will output and generated a file, but what needed is to put it directly to
stream of stdout which will be piped once.
Tried,

$ xkbcomp $DISPLAY >(cat)
Error:            Cannot open "/dev/fd/63" to write keyboard description
                  Exiting

$ xkbcomp $DISPLAY /dev/stdout
Error:            Cannot open "/dev/stdout" to write keyboard description
                  Exiting

Anyone experience or have insight on this ?




--
Sent from: http://gnu-bash.2382.n7.nabble.com/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

How do we intercept file saving or output to stdout directly almahdi <budikusasi@gmail.com> - 2020-08-23 23:17 -0700

csiph-web