On Sat, Jun 28, 2014 at 08:19:41AM +0200, phil@highoctane.be wrote:
Le 28 juin 2014 01:18, "David T. Lewis" <lewis@mail.msen.com> a ??crit :
On Fri, Jun 27, 2014 at 06:50:11PM +0200, phil@highoctane.be wrote:
Thanks.
But this would give me the 200 last chars. I am interested in the 200
last
lines.
Now, I did this:
command := 'tac ', file fullName, ' | head -200'. ^ (PipeableOSProcess command: command) output.
which did the trick but isn't portable at all (Linux here).
<OT> Don't forget to close the pipes on that PipeableOSProcess when you are done using it :-) </OT>
Isn't output closing them? Command is a complete string here.
No, one pipe handle will still be open. Use #closePipes to close it. PipeableOSProcess is designed to participate in a "pipeline" of commands, and in that environment each element of the pipeline is responsible for closing the pipe from its predecessor. Dave