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 & paste beloved lgpl code into my > project.
In a word, no. NSTask is supposed to close all handled other than 0, 1 and 2 and the API provides no way to modify that. 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. _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev