nstask
How do I check for NSFileHandle has data available?
I\'m working with NSTask, configured with 3 NSPipe, and want to read from standardOutput and standardError. I do it inside while - 1st for stdout, next for stderr.[详细]
2023-04-06 07:40 分类:问答Obj-C design pattern : parallel task launcher
I currently have a shell script that process many images one after the other, with the help of GraphicsMagick. It works fine, all calculations are correct, everything works. (that\'s not a \"simple\"[详细]
2023-04-02 13:01 分类:问答Best way to attach GDB to process ID and list its ARM registers on the iPhone?
Just won开发者_C百科dering, what is the most reliable/best way to attach GDB to process ID and list its ARM registers on the iPhone (through a cocoa app)? I\'ve been trying NSTask for quite awhile, it[详细]
2023-04-01 17:06 分类:问答NSTask's real-time output
I have a PHP script which has mutliple sleep() commands. I would like to execute it in my application with NSTask. My script looks like this:[详细]
2023-03-25 20:57 分类:问答Run terminal command with NSTask
I want to run a Terminal command in my program. The command looks like this: cd /path/to/file/; ./foo HTTPProxy 127.0.0.1[详细]
2023-03-25 13:55 分类:问答How to run the "Purge" command through NSTask?
I\'m making a free Mac app that is simply a wrapper over the \"purge\" command that can be run in Terminal.I\'m tired of the ripoffs that are populating the Mac App Store and I just want to help peopl[详细]
2023-03-22 00:47 分类:问答Can I use NSTask on the iPhone for an app I am not distributing?
I haven\'t been able to find much information about it, but I\'ve seen a few hints that it is possible to use NSTask in an iPhone app. If it is possible, how would I go about doing so?[详细]
2023-03-19 23:40 分类:问答NSTask character output to NSTextField unbuffered as continuous stream
What I want to accomplish is to start a command line (CL) task (wrapped NSTask) and pipe (NSPipe) the character output through an NSTextField label in my UI, in real-time as a stream of characters. Th[详细]
2023-03-18 06:19 分类:问答PHP CLI doesn't use stderr to output errors
I\'m running the PHP CLI through a NSTask in MacOS, but this question is more about the CLI itself. I\'m listening to th开发者_运维百科e stderr pipe, but nothing is output there no matter what file I[详细]
2023-03-14 15:47 分类:问答Write to NSTasks standard input after launch
I am currently trying to wrap my head around the hole NSTask, NSPipe, NSFileHandle business. So I thought I write a little tool, which can compile and run C code. I also wanted to be able to redirect[详细]
2023-03-13 12:11 分类:问答