I’m interested in creating an app that would use a command line executable (it’s available for Linux, Windows and OSX, so it’s reasonably portable). What is the recommended way to do this? Some ideas that come to mind are:
- Use exec or shell_exec but I’m not sure if most NextCloud installations have those enabled. Do they?
- Call the executable remotely via ssh but that would make installation more complicated and make it harder for the executable to access files stored in NextCloud.
Are there other/better ways to do it?
Are there any existing apps that use command line executables I could use as a model? I can certainly find a way to make it work but the goal of this question is to learn how to do it so installation is easiest on admins. Ideally they could just install the NC app and not have to do any external setup. If they have to do external setup, the easier the better.