Broken pipe (Errno::EPIPE)

ruby

Solution

It means that whatever connection print is outputting to is no longer connected. Presumably the program began as input to some other program:

 % ruby_program | another_program

What's happened is that `another_program` has exited sometime before the `print` in question.

Problem

i have a `Broken pipe (Errno::EPIPE)` error popping up and i don't understand what it is or how to fix it. the full error is: ``` example.rb:19:in `write': Broken pipe (Errno::EPIPE) from example.rb:19:in `print' from example.rb:19 ``` line 19 of my code is: ``` vari.print("x=" + my_val + "&y=1&z=Add+Num\r\n") ```

Original source