I am writing some code, that needs to open a file of size 12413 to read
the last line of a timestamp. The command is
timestamp = %x[tail -n 1 #{location}]
every test in rspec that performs this, it erorrs out with a
"cannot allocate memory"
is there a way to read the last timestamp without loading the entire
file in the system, which I imagine that tail does, or maybe someone can
help me figure out why it would be failing?
--
Posted via http://www.ruby-forum.com/.