> -----Original Message----- > From: Aaron Daniel [mailto:[EMAIL PROTECTED] > Sent: Monday, December 11, 2006 12:57 PM > To: [email protected] > Subject: Re: [asterisk-users] CLI History > > > 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:[EMAIL PROTECTED](pbx3):~]# asterisk -trv > > > Asterisk 1.2.9.1, Copyright (C) 1999 - 2006 Digium, Inc. > and others. > > > Created by Mark Spencer <[EMAIL PROTECTED]> > > > 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").
For crying out loud, why is this so hard to understand? It isn't rocket science. I said that when I exit the CLI and re-enter, no matter what my previous set of commands was, when I hit the UP arrow key, it was always 'stop now'. 'Stop now' WAS NOT MY PREVIOUS COMMAND. For the person that suggested maybe unknown commands are not added to the history... hera*CLI> show channels Channel Location State Application(Data) 0 active channels 0 active calls hera*CLI> sip show channels Peer User/ANR Call ID Seq (Tx/Rx) Form Hold Last Message 0 active SIP channels hera*CLI> (I Pressed Ctrl-c here) [13:[EMAIL PROTECTED](pbx3):~]# asterisk -trv Asterisk 1.2.9.1, Copyright (C) 1999 - 2006 Digium, Inc. and others. Created by Mark Spencer <[EMAIL PROTECTED]> 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 = 18149) Verbosity is at least 3 hera*CLI> stop now (I pressed the up arrow key here) As you can see, my previous commands where 'show channels' and 'sip show channels'. When I exited the CLI and re-entered and pressed ctrl-c, the commands in the history where not 'show channels and 'sip show channels' but 'stop now' instead. Doug. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
