[asterisk-users] CLI History

Aaron Daniel amdtech at shsu.edu
Mon Dec 11 12:57:01 MST 2006


On Mon, 2006-12-11 at 11:17 -0800, Carla Schroder wrote:
> On Monday 11 December 2006 9:31 am, Douglas Garstang wrote:
> > What's wrong with the Asterisk CLI history? When I exit the CLI, and
> > re-enter, the last command in the history always defaults to 'stop now'.
> > This is very bad, and it's caused accidental shutdowns more than once.
> >
> > Connected to Asterisk 1.2.9.1 currently running on hera (pid = 17399)
> > Verbosity is at least 3
> > hera*CLI> A
> > No such command 'A' (type 'help' for help)
> > hera*CLI> B
> > No such command 'B' (type 'help' for help)
> > hera*CLI> C
> > No such command 'C' (type 'help' for help)
> > hera*CLI> D
> > No such command 'D' (type 'help' for help)
> > hera*CLI> E
> > No such command 'E' (type 'help' for help)
> > hera*CLI>
> > [10:30][root at hera(pbx3):~]# asterisk -trv
> > Asterisk 1.2.9.1, Copyright (C) 1999 - 2006 Digium, Inc. and others.
> > Created by Mark Spencer <markster at digium.com>
> > Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for
> > details. This is free software, with components licensed under the GNU
> > General Public License version 2 and other licenses; you are welcome to
> > redistribute it under certain conditions. Type 'show license' for details.
> > =========================================================================
> > Connected to Asterisk 1.2.9.1 currently running on hera (pid = 17399)
> > Verbosity is at least 3
> > hera*CLI> stop now <-- I pressed the UP arrow upon re-entering the console!
> >
> 
>  I'm a bit confused by your example. What are A,B,C, etc? To exit the Asterisk 
> console, I type 'exit'. Asterisk continues to run, as it should. To re-enter 
> the console I use asterisk -rvvv.
> 
He was demonstrating how the CLI history shows stop now as the last
command (which um... it's a history?  you're last command is gonna be
the um... last command you ran... i.e. "stop now").

Douglas,  why're you even running "stop now" on a live production
server.  If you're not, quit complaining and watch what you type before
hitting enter.
-- 
Aaron Daniel
Senior Voice Analyst
Sam Houston State University
amdtech at shsu.edu
(936) 294-4198



More information about the asterisk-users mailing list