Asterisk Project : Function_SHELL

Asterisk Project : Function_SHELL This page last changed on Mar 30, 2011 by wikibot. # SHELL() ### Synopsis Executes a command as if you were at a shell. ### Description Returns the value from a system command Example: `Set(foo=${SHELL(echo \bar)})` When using the SHELL() dialplan function, your \SHELL\ is /bin/sh, which may differ as to the underlying shell, depending upon your production platform. Also keep in mind that if you are using a common path, you should be mindful of race conditions that could result from two calls running SHELL() simultaneously.When using the SHELL() dialplan function, your \SHELL\ is /bin/sh, which may differ as to the underlying shell, depending upon your production platform. Also keep in mind that if you are using a common path, you should be mindful of race conditions that could result from two calls running SHELL() simultaneously. ### Syntax
    SHELL(command)
##### Arguments `command` - This is the argument to the function, the command you want to pass to the shell. ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-1.8-r311874.

Document generated by Confluence on Oct 04, 2011 12:42