It sounds like you need to set up passwordless sudo. Try:
%admin ALL=(ALL) NOPASSWD: osascript myscript.scpt
Also comment out the following line (in /etc/sudoers via visudo), if it is there:
Defaults requiretty
More Related Contents:
- Composer: file_put_contents(./composer.json): failed to open stream: Permission denied
- Website is very slow, but if I modify the URL it loads normally
- UTF-8 all the way through
- Where can I find php.ini?
- Run process with realtime output in PHP
- Running a Python script from PHP
- How to call shell script from php that requires SUDO?
- PHP passing $_GET in the Linux command prompt
- PHPMailer GoDaddy Server SMTP Connection Refused
- In a PHP / Apache / Linux context, why exactly is chmod 777 dangerous?
- Troubleshooting PHP Mail [duplicate]
- How to install PHP mbstring on CentOS 6.2
- Tell Composer to use Different PHP Version
- How to enable mysqlnd for php?
- Extract text from doc and docx
- Is it wise to use PHP for a daemon?
- How do I throttle my site’s API users?
- ERROR 403 in loading resources like CSS and JS in my index.php
- Permission denied with bash.sh to run cron
- Using WGET to run a cronjob PHP
- Make a path work both on linux and Windows
- Checking if process still running?
- PHP exec – check if enabled or disabled
- How to run the PHP script at scheduled time
- php.ini changes, but not effective on Ubuntu
- How can I change php-cli version on Ubuntu 14.04?
- How do I enable –enable-soap in php on linux?
- mysql injection damages?
- How can I execute PHP code from the command line?
- Linux – PHP 7.0 and MSSQL (Microsoft SQL)