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 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
