I am new to Asterisk. Asterisk 1.2 I started * like this: asterisk -vvvvvgc now I am in CLI mode: *CLI> How do I get out this CLI mode to linux shell without kill asterisk process? I tried EXIT, QUIT, exit and quit. None of them work. If I use ^c, this also kill asterisk process. GC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051130/7f492362/attachment.htm
gc wrote:> I started * like this: asterisk -vvvvvgc > now I am in CLI mode: *CLI> > How do I get out this CLI mode to linux shell without kill asterisk process?if you want to run it like this, first do a "screen" (more info: man screen) so you can run it in a background shell. But I recommend on running it with the appropriate init script.. cheers
just press Ctrl-C or type exit You will kill asterisk, of course... Start asterisk by typing asterisk and then go to CLI by typing asterisk -vvvvvvvvvvvvvvvvr then, when u will quit, asterisk will not be killed U will be then in CLI mode have fun -----Message d'origine----- De : asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de gc Envoy? : mercredi 30 novembre 2005 22:15 ? : asterisk-users@lists.digium.com Objet : [Asterisk-Users] How to exit from Asterisk console. I am new to Asterisk. Asterisk 1.2 I started * like this: asterisk -vvvvvgc now I am in CLI mode: *CLI> How do I get out this CLI mode to linux shell without kill asterisk process? I tried EXIT, QUIT, exit and quit. None of them work. If I use ^c, this also kill asterisk process. GC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051130/326f2f36/attachment.htm
1. Kill the Asterisk process 2. Launch Asterisk as a background process by typing 'asterisk &' or use the safe_asterisk shell script (better) 3. type 'asterisk -r' to connect to the console 4. Press Ctrl C to exit the console. Use ps -a | grep Asterisk to determine if the Asterisk process is still running (it should be) 5. Modify /etc/rc.d/rc.local to have step 3 in it as the last line. This will launch Asterisk as a background process on boot. hth -----Original Message----- From: gc [mailto:garych@unidial.com] Sent: Wednesday, November 30, 2005 2:15 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] How to exit from Asterisk console. I am new to Asterisk. Asterisk 1.2 I started * like this: asterisk -vvvvvgc now I am in CLI mode: *CLI> How do I get out this CLI mode to linux shell without kill asterisk process? I tried EXIT, QUIT, exit and quit. None of them work. If I use ^c, this also kill asterisk process. GC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051130/5553772a/attachment.htm