How To Run Asterik Cli Command From Bash
When writing scripts with linux shell it may needed to run asterisk cli commands from shell . Here is how to do it.
$ asterisk -rx "module show"
-r is for connecting asterisk daemon currently running and x for executing command which is following string “module show”