From: Jesse Merriman Date: 2007-06-24T21:13:12+09:00 Subject: Re: Non-blocking IO & Maxima On Saturday 23 June 2007 21:26, Tanaka Akira wrote: > In article <200706231809.39921.jesse.d.merriman@gmail.com>, > Jesse Merriman writes: > > > WTF? If I use "ls" instead of "maxima --batch-string='1+1;'" then it works it > > both cases. So is this a problem with Maxima, Ruby, or my code? > > I think it is caused by that maxima is slower than ls. > > Try "sleep 1; ls". > > It is impossible to read a line before a line is sent in > non-blocking manner. Ah, thats it, thanks. I wasn't thinking about the delay between typing lines in IRB that gave it the time to execute.. -- Jesse Merriman jessemerriman@warpmail.net http://www.jessemerriman.com/