View previous topic :: View next topic |
Author |
Message |
geisj at pagestation.com Guest
|
Posted: Sun Mar 16, 2008 5:11 pm Post subject: [asterisk-users] using the System() command to call a script |
|
|
I am wanting to call a shell script in System() command and it does not
seem to work.
If I put a direct linux command it does work.
My script is owned by root and is executable.
Is this possible? What might I be missing?
Jerry |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Sun Mar 16, 2008 5:57 pm Post subject: [asterisk-users] using the System() command to call a script |
|
|
On Sun, 16 Mar 2008, Jerry Geis wrote:
Quote: | I am wanting to call a shell script in System() command and it does not
seem to work.
If I put a direct linux command it does work.
My script is owned by root and is executable.
Is this possible? What might I be missing?
|
A path?
Try specifying the absolute path to your script.
Try executing "system(set >/tmp/asterisks-environment) to see all the
cruft.
(For extra points, try changing your Asterisk startup script to use "env
--ignore-environment" to eliminate most of the cruft
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000 |
|
Back to top |
|
|
|