From: "Jon S." Date: 2011-10-28T06:50:19+09:00 Subject: Memory issue with tail command 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/.