[Newbies] PipeableOSProcess shell interaction
openslateproj at gmail.com
Mon Jun 17 20:16:05 UTC 2013
On Wed, Jun 12, 2013 at 2:47 AM, David T. Lewis <lewis at mail.msen.com> wrote:
> On Tue, Jun 11, 2013 at 10:34:47PM -0700, Sean P. DeNigris wrote:
> > When using PipeableOSProcess as a shell, how can I get feedback on the
> > of the individual commands?
> PipeableOSProcess is designed to be part of CommandShell, so when you use
> directly (rather than using a CommandShell), you need to take care of a few
> details. The important things are to set the output pipe for nonblocking
> (otherwise you will hang up your VM on a read), and to close pipes when you
> are done using them (otherwise you will "leak" file handles over time).
Could the example you gave be implemented using CommandShell? In what
situations would I want to use PipeableOSProcess instead of CommandShell?
Open Slate Project
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners