[asterisk-users] System() command refuses to execute bash script
Steve Edwards
asterisk.org at sedwards.com
Mon Mar 2 10:44:01 CST 2015
Please don' top post.
On Mon, 2 Mar 2015, Tech Support wrote:
> I'm surprised that you didn't have to specify the full path to the 'touch'
> command. When writing AGI scripts, I always do something like
> $touch = which( 'touch' ). I guess it's over kill.
The AGI process inherits the environment of the parent, Asterisk.
You can set the Asterisk environment in the script that starts Asterisk.
For example:
cd /tmp/
ulimit -n 8192
nice --adjustment=-20\
env --ignore-environment\
HOSTNAME=${HOSTNAME}\
PATH=${PATH}\
$ASTERISK $START_OPTIONS
--
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