iOS execute shell script from Activator
问题 I am using a jailbroken iOS device, and I want to add an action to Activator that executes a shell script stored in a known location. Does anyone know how to achieve this? 回答1: I'm not sure whether or not Activator can run scripts directly , but it certainly can run any app you install on your device, with whatever action (e.g. swipe, shake, button press) you like. Just make a simple app that uses the system() function, or an exec function to invoke your script: int main(int argc, char *argv[