Asterisk Project : Asterisk 10 Function_SHELL This page last changed on Oct 14, 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-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:25