nstask
Pass data into a tool's stdin using NSTask
Let\'s say I h开发者_运维技巧ave some tool that, at some point in its execution, asks for user input. For example, it might ask for name and address. At another point it might ask for a password (and[详细]
2023-03-10 15:01 分类:问答NSTask and Git -- Permissions issues
In my Cocoa application I\'m trying to use NSTask to run some basic Git commands. Whenever I run a command that requires permissions (SSH keys) to access a remote (e.g. git push, git pull), it fails w[详细]
2023-03-10 06:44 分类:问答Determine which signal uncaught by terminated child process
I have a Mac OS X app (Cocoa), which spawns a C++ console helper app to do some work.The GUI spawns the helper via NSTask, and they communicate with each other via named pipes.This is all good.[详细]
2023-03-09 21:16 分类:问答Running multiple NSTasks consecutively
I need to run multiple commands in sequence using NSTask and was wondering what would be a good way to tell if a task has finished so I can continue on to the next command. I\'m using \"sox\" (which I[详细]
2023-03-06 11:23 分类:问答How to run the "screen" command from NSTask?
I want to monitor a virtual COM port (Arduino RFID) on my Mac. I can run \"screen /dev/tty.serialnumber\" from the terminal, and it outputs the RFID serial number when I swipe it.[详细]
2023-03-04 19:57 分类:问答Create NSTask for gdb
I\'m trying to create an NSTask that uses GDB to attach to a program, but my program just freezes after launching the task. Is this possible to do? Here is the code I\'m using:[详细]
2023-03-01 12:03 分类:问答Using NSTask as root - error: "launch path not accessible"
For some reason when I\'m attempting to run a task via NSTask I receive the error message: \"launch path not accessible\".[详细]
2023-02-28 02:30 分类:问答NSTask, command line tools and root
I\'m working on an app that needs to use dd (I do this with a shell script in the app bundle, that collects parameters from the app itself, makes some checks and then launches dd).[详细]
2023-02-27 03:50 分类:问答Jailbroken iOS: NSTaskDidTerminateNotification fails to launch selector
I seem to have the same problem as here: NSTask waitUntilExit hanging app on jailbroken iOS Here\'s what I\'ve got via NSNotification (like above), yet the taskEnded: alert(s) aren\'t coming up. The[详细]
2023-02-19 05:01 分类:问答create zip archive using NSTask containing a first level folder with the files
my method works for zipping files from a temporary directory previously created and populated: NSURL *destURL = self.archiveDestURL;[详细]
2023-02-18 08:47 分类:问答