Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
text = InputStream.readText()
InputStream.eachLine
InputStream.withReader { reader | ... }
OutputStream.withwriter { writer | ... }
This would mean for process execution stuff we could do
process = "ls -l".execute()
process.outputStream.eachLine { line | ... }
process.errorStream.eachLine
{ line | ... }In addition it'd be useful to have a helper method on Process
waitForOrKill(long timeout)
which would try wait for a certain period of time or kill the given process.
I hope you don't mind me assiging this one to you Guillaume, by all means assign it back to me or unassign it if you don't fancy doing it.