nstask
How to use NSTask as root?
In an application I\'m making I need to run the following command as root (user will be prompted trice if they really want to, and they will be asked to unmount their drives) using NSTask:[详细]
2023-01-22 07:18 分类:问答Obtaining admin privileges to delete files using rm from a Cocoa app
I am making a small app that deletes log files. I am using an NSTask instance which runs rm and srm (secure rm) to delete files.[详细]
2023-01-13 04:57 分类:问答How would I run an .sh file using NSTask and get its output?
I need to run an .sh file and get its output. I need to see the setup of the file as well. The .sh fil开发者_Go百科e simply runs a java app through terminal.[详细]
2023-01-12 21:25 分类:问答AMShellWrapper sending data to a running task
I\'m in the process of converting 开发者_Python百科AMShellWrapper to my own application that runs an SH file that has userinput. Therefore, I need to send data to a running task.[详细]
2023-01-12 20:12 分类:问答NoClassDefFoundError when running shell script
Here is the error: Exception in thread \"main\" java.lang.NoClassDefFoundError: org/alicebot/server/net/AliceServer[详细]
2023-01-12 19:31 分类:问答How to give permission using NSTask - objective-c [duplicate]
This question already has answers here: How to use NSTask as root? (5 answers) 开发者_如何学Go Closed 6 years ago.[详细]
2023-01-12 09:30 分类:问答NSTask NSPipe - objective c command line help
Here is my code: task = [[NSTask alloc] init]; [task setCurrentDirectoryPath:@\"/applications/jarvis/brain/\"];[详细]
2023-01-10 17:14 分类:问答Creating a GUI for a command-line utility using Cocoa
I\'m looking for a way to create a GUI (using Cocoa) to make a command-line utility more accessible to some of my colleagues. If you use NSTask to execute/start the utility, can you开发者_开发问答 the[详细]
2023-01-07 11:28 分类:问答NSTask setLaunchPath Objective-C Cocca
This is a very simple question. I have a script in the same folder as the 开发者_开发知识库Cocoa app. I can\'t seem to set the path to it properly for setLaunchPath for NSTask. Help please.[详细]
2023-01-06 23:28 分类:问答NSTask sending an argument through /bin/sh or /bin/bash problem Cocoa Objective-C
Basically I\'ve passed a script in the terminal through /bin/bash \"[path]\" or /bin/sh \"[path]\", and I\'ve passed commands in a termina开发者_开发技巧l through /bin/bash -c \"[command]\" or /bin/sh[详细]
2023-01-06 22:48 分类:问答