[asterisk-users] ! Command from -rx?
Baji Panchumarti
baji.panchumarti at gmail.com
Sat Aug 4 21:05:34 CDT 2007
On 8/4/07, Matt wrote:
> This may sound stupid.. so bear with me for a moment.
>
> Assuming the only access I have to a machine is through asterisk -rx
> can I use the ! command?
>
> asterisk -rx help
>
> includes the ! command, but I can't seem to get it to work ie:
>
> asterisk -rx "! ls"
>
> Any help?
asterisk -rx `! ls > myout.txt`
will save the output in myout.txt
asterisk -rx "`! ls`"
will give the command output sandwiched between * msgs.
reduce *'s verbosity and you may have what you need.
--
More information about the asterisk-users
mailing list