Hi,

Some notes,

Don't run Asterisk as root.

But also:

On Mon, Mar 02, 2015 at 04:44:48PM +0200, Stefan Viljoen wrote:
> Hi all
> 
> I got this solved.
> 
> Turns out the script WAS executing, but I forgot that apparently you need to
> follow "cron rules" in any BASH scripts executed via System() from an
> Asterisk dialplan.
> 
> E. g. all paths must be fully and absolutely specified, there are no
> relative path references available.
> 
> So I changed the the file wireless.sh which was:
> 
> #!/bin/bash
> touch wireless-executed
> 
> to
> 
> #!/bin/bash
> touch /root/wireless-executed

A variant on:

  cd `dirname $0`

can help in such cases.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.co...@xorcom.com
+972-50-7952406           mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to