VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mark.h at cage151.com Guest
|
Posted: Sun May 11, 2008 2:41 am Post subject: [asterisk-users] Use safe_asterisk manually, you get colors |
|
|
Hello,
Colors in the CLI have helped me ignore notices/warnings, etc and
concentrate better on stuff that I want to look out for during testing.
I've noticed that a simple restart would not bring back the colors in
the CLI. Asterisk needs to either start on boot, or start by way of
safe_asterisk to have colors in the CLI.
To top this, I always restart asterisk nightly.
My restart script code:
#!/bin/bash
time=`date`
echo "I ran at $time" >> /root/asterisklog
/usr/sbin/asterisk -rx "stop now"
/usr/sbin/safe_asterisk
This basically shows that safe_asterisk is being defined, YET everytime
the restart script is executed by crontab, I don't see the colors.
Unless ofcourse I manually stop now, and safe_asterisk.
What gives?
I just want to have an auto restart, and CLI with colors!
Regards,
Mark.
PS: Sorry for the other HTML mail. |
|
Back to top |
|
|
tony at softins.clara.... Guest
|
Posted: Sun May 11, 2008 6:48 am Post subject: [asterisk-users] Use safe_asterisk manually, you get colors |
|
|
In article <20080511004113.f1989b38ea6175db3efe8e52dbe2a6b2.6f4997013e.wbe at email.secureserver.net>,
Mark Hamilton <mark.h at cage151.com> wrote:
Quote: | Colors in the CLI have helped me ignore notices/warnings, etc and
concentrate better on stuff that I want to look out for during testing.
I've noticed that a simple restart would not bring back the colors in
the CLI. Asterisk needs to either start on boot, or start by way of
safe_asterisk to have colors in the CLI.
To top this, I always restart asterisk nightly.
My restart script code:
#!/bin/bash
|
Try adding here:
export TERM=linux
Quote: | time=`date`
echo "I ran at $time" >> /root/asterisklog
/usr/sbin/asterisk -rx "stop now"
/usr/sbin/safe_asterisk
This basically shows that safe_asterisk is being defined, YET everytime
the restart script is executed by crontab, I don't see the colors.
Unless ofcourse I manually stop now, and safe_asterisk.
What gives?
I just want to have an auto restart, and CLI with colors!
|
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org |
|
Back to top |
|
|
mark.h at cage151.com Guest
|
Posted: Sun May 11, 2008 12:30 pm Post subject: [asterisk-users] Use safe_asterisk manually, you get colors |
|
|
You rock!
Thank you very much, that worked!
-------- Original Message --------
Subject: Re: [asterisk-users] Use safe_asterisk manually, you get
colors in CLI. Crontab it, you don't.
From: tony at softins.clara.co.uk (Tony Mountifield)
Date: Sun, May 11, 2008 7:48 am
To: asterisk-users at lists.digium.com
In article
<20080511004113.f1989b38ea6175db3efe8e52dbe2a6b2.6f4997013e.wbe at email.secureserver.net>,
Mark Hamilton <mark.h at cage151.com> wrote:
Quote: | Colors in the CLI have helped me ignore notices/warnings, etc and
concentrate better on stuff that I want to look out for during testing.
I've noticed that a simple restart would not bring back the colors in
the CLI. Asterisk needs to either start on boot, or start by way of
safe_asterisk to have colors in the CLI.
To top this, I always restart asterisk nightly.
My restart script code:
#!/bin/bash
|
Try adding here:
export TERM=linux
Quote: | time=`date`
echo "I ran at $time" >> /root/asterisklog
/usr/sbin/asterisk -rx "stop now"
/usr/sbin/safe_asterisk
This basically shows that safe_asterisk is being defined, YET everytime
the restart script is executed by crontab, I don't see the colors.
Unless ofcourse I manually stop now, and safe_asterisk.
What gives?
I just want to have an auto restart, and CLI with colors!
|
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|