jldupont
jldupont

Reputation: 96716

linux FIFO blocking pipe

If I do the following:

mkfifo fifo
some_command < fifo

"some_command" doesn't get spawned before there is data fed through "fifo". How can resolve this without first having to send stuff down the fifo?

Upvotes: 0

Views: 524

Answers (1)

pizza
pizza

Reputation: 7630

you can do

cat fifo | some_command

Upvotes: 1

Related Questions