George Williams
2008-Sep-19 19:54 UTC
[asterisk-users] getting results messages from CLI commands via -rx
Hi, I am issuing CLI commands via script, using the "asterisk -rx" method. Its working great. Now, I need to get the results of the command to look for error messages, etc. I've tried setting several "-v" flags as well, but I only get the Asterisk startup text (version, license info, etc), not the results of the command itself. Is this even possible? Thanx! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080919/b0bf3147/attachment.htm
Tilghman Lesher
2008-Sep-19 20:31 UTC
[asterisk-users] getting results messages from CLI commands via -rx
On Friday 19 September 2008 14:54:58 George Williams wrote:> I am issuing CLI commands via script, using the "asterisk -rx" method. > > Its working great. Now, I need to get the results of the command to look > for error messages, etc. > > I've tried setting several "-v" flags as well, but I only get the Asterisk > startup text (version, license info, etc), not the results of the command > itself.If you're doing activities via a script, the recommended method is to do this via the Asterisk Manager Interface. There is a sample script within the contrib/scripts directory called astcli, which shows how to do this in Perl. Note that the script is only available in trunk, though it should work with other versions of Asterisk. http://svn.digium.com/view/asterisk/trunk/contrib/scripts/astcli?view=log -- Tilghman
Tzafrir Cohen
2008-Sep-20 11:25 UTC
[asterisk-users] getting results messages from CLI commands via -rx
On Fri, Sep 19, 2008 at 12:54:58PM -0700, George Williams wrote:> Hi, > > I am issuing CLI commands via script, using the "asterisk -rx" method. > > Its working great. Now, I need to get the results of the command to look > for error messages, etc. > > I've tried setting several "-v" flags as well, but I only get the Asterisk > startup text (version, license info, etc), not the results of the command > itself.Don't use v-s. They are global. It seems you didn't have the '-x'. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir