A similar question has been asked here before but it’s not clear if it was ever resolved. I followed some of the information there but couldn’t get it to work.
I’ve written my own command-line tool and would like to know how I can run it from another app.
I created a
system, defined my own command and my tool runs as expected from a terminal.
My end goal here is to be able to invoke my command-line tool remotely via SMS.
The apps are running unsandboxed for the moment to make things easier.
Here’s what I’ve added to the
.adef for the app wanting to run my tool.
Within the app ‘runner’ I’ve tried using
popen("mytool -h", "r") but the command always returns
I’ve also tried including paths before the command, I.E.,
"/usr/bin/mytool -h" without any success.
Worth noting that I’ve been able to run the command-line tool process/component by another process/component, but only if the executables are part of the same application. This is my fall-back solution.
I’d prefer to run them as separate apps.
Is this possible?
If so, how can I do this?
Thanks in advance,