[asterisk-users] System() command refuses to execute bash script

Kevin Larsen kevin.larsen at pioneerballoon.com
Mon Mar 2 08:32:33 CST 2015

asterisk-users-bounces at lists.digium.com wrote on 03/02/2015 08:27:07 AM:

> From: "Stefan Viljoen" <viljoens at verishare.co.za>
> To: <asterisk-users at lists.digium.com>, 
> Date: 03/02/2015 08:27 AM
> Subject: [asterisk-users] System() command refuses to execute bash 

> How can I use System to run a bash script?

Just to rule out some weird permissions issue, try to write the file to 
some directory that has full read/write permissions to everyone (eg 777). 
If the file can be written to that directory you probably have a 
permissions issue still. I run my asterisk under the asterisk user and 
have it kick of scripts that write to a folder on the system all the time. 
The folder has full permissions for the Asterisk user.

Give it a shot and see what you get.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150302/57432053/attachment.html>

More information about the asterisk-users mailing list