Re: [Pharo-dev] [Pharo-users] [ANN] OSSubprocess first milestone
Luc, Damien, et all. I implemented the kind of API Luc suggested, which was a great idea. I took also his API to answer Damien question of could we do a "tail -f" example. So I made a little example where I run "tail -f system.log" and I keep a Playground updated with the stdout :) Here is the video: https://dl.dropboxusercontent.com/u/6980943/tailExample.mov Let me know what do you think. Cheers, On Fri, Jan 15, 2016 at 10:51 AM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
defaultReadStreamCreationBlock: [ process createTempFileToBeUsedAsReadStreamOn: '/tmp' ];
In the readme, the piece of code containing that is a bit suspicious because it depends on the fact that the block is evaluated after the variable 'process' is assigned.
Thanks, fixed! I always hated the instance side nature of those methods, so I moved them to class side.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
That looks very cool to me, it would have come quite in handy for some project that I did last year ;-)
On Jan 15, 2016, at 13:13, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
Luc, Damien, et all.
I implemented the kind of API Luc suggested, which was a great idea. I took also his API to answer Damien question of could we do a "tail -f" example. So I made a little example where I run "tail -f system.log" and I keep a Playground updated with the stdout :) Here is the video:
https://dl.dropboxusercontent.com/u/6980943/tailExample.mov <https://dl.dropboxusercontent.com/u/6980943/tailExample.mov>
Let me know what do you think.
Cheers,
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
participants (2)
-
Johan Fabry -
Mariano Martinez Peck