I don\'t know what the deal is here…
So I want to run an applescript: sudo osascript myscript.scpt
sudo osascript myscript.scpt
This works fine in the terminal, but not when
I think you can bring specific access to user and command with visudo something like this:
visudo
nobody ALL = NOPASSWD: /path/to/osascript myscript.scpt
and with php:
@exec("sudo /path/to/osascript myscript.scpt ");
supposing nobody user is running apache.
nobody