Running an asterisk cli command

how do i run an asterisk command without getting inside the cli,

say i want to do a “show channels” command without doing asterisk -vvvr first.

thanks for the help.

Nevermind, found itin the digium site … in case someone doesnt know its
asterisk -r -x “put the command here”