Inheriting more file descriptors to NSTask

2011-03-06 Thread Banlu Kemiyatorn
Hi, is it possible to pipe to fd 3,4,5 etc on NSTask? Some tools like ImageMagick can open fd 3 4 5... though -launch close them. What would be the best way to pipe to them? I am looking for a kind of official support as I am avoiding cut & paste beloved lgpl code into my project. Thanks, Banlu --

Re: Inheriting more file descriptors to NSTask

2011-03-07 Thread Richard Frith-Macdonald
On 6 Mar 2011, at 21:59, Banlu Kemiyatorn wrote: > Hi, is it possible to pipe to fd 3,4,5 etc on NSTask? Some tools like > ImageMagick can open fd 3 4 5... though -launch close them. What would > be the best way to pipe to them? I am looking for a kind of official > support as I am avoiding cut &

Re: Inheriting more file descriptors to NSTask

2011-03-07 Thread Banlu Kemiyatorn
On Mon, Mar 7, 2011 at 10:42 PM, Richard Frith-Macdonald wrote: > Depending on what you are trying to do, you might redirect other decriptors > to one of those, or you might try using named pipes to communicate between > processes. I want to write to any predefined descriptor on target process

Re: Inheriting more file descriptors to NSTask

2011-03-09 Thread Richard Frith-Macdonald
On 7 Mar 2011, at 16:04, Banlu Kemiyatorn wrote: > On Mon, Mar 7, 2011 at 10:42 PM, Richard Frith-Macdonald > wrote: >> Depending on what you are trying to do, you might redirect other decriptors >> to one of those, or you might try using named pipes to communicate between >> processes. > > I

Re: Inheriting more file descriptors to NSTask

2011-03-09 Thread Banlu Kemiyatorn
Thanks, It's okay, I'll just create another lgpl library subclassing NSTask and link to it. Banlu - Original message - > > On 7 Mar 2011, at 16:04, Banlu Kemiyatorn wrote: > > > On Mon, Mar 7, 2011 at 10:42 PM, Richard Frith-Macdonald > > wrote: > > > Depending on what you are trying