How to issue a command that produces infinite output and return immediately
问题 When I write the following code (in ammonite but i don't think it matters) ("tail -f toTail.txt" lineStream) foreach(println(_)) , the program give me the last line as intend but then hang, and even if i write more in the file, nothing come out. How does the API support process that have unbounded output ? I try to write val myStream = ("tail -f toTail.txt" lineStream_!) but it still does not return write away Here is what the scala doc says: lineStream: returns immediately like run, and the