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

Steve Edwards asterisk.org at sedwards.com
Mon Mar 2 10:03:34 CST 2015

On Mon, 2 Mar 2015, Tzafrir Cohen wrote:

> A variant on:
>  cd `dirname $0`
> can help in such cases.

This would yield 'the directory the script lives in' which may be 
read-only and is probably not where you want random files created.

Thanks in advance,
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

More information about the asterisk-users mailing list