From: Yohanes Santoso Date: 2002-04-01T03:08:42+09:00 Subject: Re: Process Mgmt wrapper? --=-=-= David Corbin writes: > 1) I am aware of the Process module, as well as Kernel > 2) I need to be able to > a) launch an external processes > b) provide access to process status (running, terminated cleanly, > abnormaly terminated) > c) prevent another instance of *this* process from being launched > d) perhaps process some of the output "on demand" > Here's something to get you started. Not that different from popen3, but should give you hints on what to add. Then whatever you produce should be wrapped in a thread plus some other status checker methods. YS. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=myio.rb.gz Content-Transfer-Encoding: base64 H4sIAEsNTDwAA3VUbW/aMBD+nPyKK+FD0rFAv01IlEotk5C2MbHuU9dFIb5Qa8G2HGcpIt1v3zkO b2uHBPY99/7cmeBiWJV6uOJiqKvVFt7Xvh8skXEN3+7vZsslGGlvi+/3fjDTWmrIJEPItdxAtmFQ 86KAFYIq0gwZcAH9zZbLBLX26ZMVaVnC5+184QPc3BB6a90nMCKZYQ4lFnncwQSdGJGEgr1hNgkF 1r/TosLo3IPC7jWvnbVtijq4l4vKhJdUu/NWNbnNF+Ox4gpJDsBeHkaPkFOzGlM2cMiVQ2rNjatU 6RPPFqE6smN7ZMEZ3cnr166VbfTsiResk5zGC2CtU8GcxlM1pYqzQpboe0T9/AvVLhWKkDSjx6i1 GB0slD4R3KQO9poiRS1Kk/wXbc+9Y7ktDW46WvZhVGVK6CUJOS+Wye3ibjYJdv0pXF/Dh5de18NL d+IzNxf+ETkt0rF1TGflr1pmWJZxnXJDPIX07QbCibOHloUBtN09tjjP7TC5QDaFLccDiStcc+F7 Gk2lhdOEl4pH+7pEWWnLE48xzZ52jWpAuTqgEgWVsBfZ9NCLcMH3p+Jv7FMlTrbofysGTELDZdl0 kbkgUgcgK0NNEt7BBvWGi9TY1cnToqMIoKaVQBDSHC18j4gIw7AgJsiaIsVrNGUEE9p+XkTQNL5n fTuLPzD8eTbC8Ad7F/WHUWTNThMbTe/Gg7O3RnD/KjYy4VYj8Nn4niXCez0N0rcXsHmd1Vts2l86 go1kVYFJXonMcClgfMae35pRkv7INpYkH+efZklCjva/pCW/Fw+peaoz1qteBDtobOIGum3jwkCP tnjcG7iK3GK6nZ65h0rr3IbrmqWdtmn/ApFOlQAUBQAA --=-=-=--