[asterisk-commits] mvanbaak: branch group/cli_cleanup-1.4 r144922 - /team/group/cli_cleanup-1.4/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 26 21:24:34 CDT 2008


Author: mvanbaak
Date: Fri Sep 26 21:24:32 2008
New Revision: 144922

URL: http://svn.digium.com/view/asterisk?view=rev&rev=144922
Log:
add small script to extract all the CLI commands from a logfile.
If you run this script without arguments it will look in /var/log/asterisk/full

Added:
    team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log   (with props)

Added: team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log
URL: http://svn.digium.com/view/asterisk/team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log?view=auto&rev=144922
==============================================================================
--- team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log (added)
+++ team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log Fri Sep 26 21:24:32 2008
@@ -1,0 +1,9 @@
+#!/bin/sh
+
+LOGFILE=${1}
+
+if [ "x${LOGFILE}" = "x" ]; then
+	LOGFILE=/var/log/asterisk/full
+fi
+
+cat ${LOGFILE} | grep 'CLI cmd:' | cut -d "'" -f 2 | sort | uniq

Propchange: team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log
------------------------------------------------------------------------------
    svn:executable = *

Propchange: team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/cli_cleanup-1.4/contrib/scripts/get_clicommands_from_log
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list