[asterisk-users] CLI History
Jonathan k. Creasy
jonathan at bluegrass.net
Mon Dec 11 13:02:08 MST 2006
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Carla Schroder
> Sent: Monday, December 11, 2006 2:17 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] CLI History
>
> 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!
> >
>
Mine appears to work:
##Connected to Asterisk and execute stop now:
dragon*CLI> stop now
dragon*CLI>
Disconnected from Asterisk server
## Restarted Asterisk:
[root at dragon ~]# asterisk -p
## Connected to Asterisk then ran exit:
[root at dragon ~]# asterisk -r
Asterisk 1.4.0-beta3, 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.4.0-beta3 currently running on dragon
(pid = 32521)
dragon*CLI> exit
## Connected to Asterisk Again and hit the up arrow:
[root at dragon ~]# asterisk -r
Asterisk 1.4.0-beta3, 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.4.0-beta3 currently running on dragon
(pid = 32521)
dragon*CLI> exit
Exit is displayed not stop now. If you hit "A" and it's an invalid
command...maybe that is your problem...
More information about the asterisk-users
mailing list