From: Roger Pack Date: 2009-01-29T05:27:13+09:00 Subject: Errno::ENOMEM reading a device in Ruby, not in Java though Question on how to avoid an Errno::ENOMEM Currently if I open a tape device from my machine [/dev/st2] in ruby reading the second file from it results in: read.rb:2:in `read': Cannot allocate memory - /dev/st2 (Errno::ENOMEM) from read.rb:2 Java to do the same works, however. the "cat" command [i.e. cat \n