I have the following script to run my application in Ubuntu with redirecting its input (where $in is named pipe which is used to send text lines to stdin).

tail -f "$in" | "$app_bin" $app_args &

I can send input to my application when needed with:

printf "%s\n" "text input" >> "$in"

However, when running in Cygwin environment (Windows), the second command works only the first time! Then you try to send second line of text, it freezes without any action, while trying to manipulate $in gives error "Device or resource busy".

How did you solve this problem? Is it Cygwin specific?

1 Answer 1


Likely a incomplete implementation


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.