eog view generated image via pipe open

2019-08-09 17:04发布

问题:

I have a command, let's call it "makeimage", that produces a jpg image to stdout. Rather than send output to a file and open that, I'd prefer to view the output directly via something like:

eog <(makeimage)

but eog instead displays an error: "no images found in file:///dev/fd/63". Is there a way to accomplish this without use of a temporary file?

标签: bash pipe