Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] using the System() command to call a script


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
geisj at pagestation.com
Guest





PostPosted: Sun Mar 16, 2008 5:11 pm    Post subject: [asterisk-users] using the System() command to call a script Reply with 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?

Jerry
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Sun Mar 16, 2008 5:57 pm    Post subject: [asterisk-users] using the System() command to call a script Reply with quote

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 Smile

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services