Does mkfifo simply not work with Cygwin? A simple set of commands such as
$ mkfifo my_pipe
$ echo "1234" > my_pipe
just causes the terminal to sit forever with the cursor blinking. Am I “doing it wrong”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you’re not doing anything wrong with either of those commands, it’s just your expectations are a little off.
What you’re missing is something at the other end of that pipe, reading that data. This apparent hanging happens in Linux as well, so it’s not a CygWin problem (or any sort of problem, really).
Just open up another window and enter:
and you’ll see the data appear, followed by the original
echocompleting.