[asterisk-bugs] [Asterisk 0018097]: unexpected output from command line, when issuing commands from shell

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 9 16:46:03 CST 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18097 
====================================================================== 
Reported By:                atheos
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   18097
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
JIRA:                       SWP-2337 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!): 290289 
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-10-05 11:51 CDT
Last Modified:              2010-11-09 16:46 CST
====================================================================== 
Summary:                    unexpected output from command line, when issuing
commands from shell
Description: 
When issuing a shell command to asterisk, I'm getting non-standard output
after upgrading to 1.6.2.13 that I wasn't getting in 1.6.2.7

/usr/sbin/asterisk -rx "database show foo" > test.txt
using 1.6.2.7 in my test.txt, I'll have the expected "0 results found."
using 1.6.2.13+ I'll have the undesirable "^[[0;37m0 results found."

I believe this is related to terminal colors, but I have this disabled.
I'm using shell scripts to pattern match information in the asterisk
database, which  of course is greatly interrupted by this issue.
====================================================================== 

---------------------------------------------------------------------- 
 (0128733) bbryant (administrator) - 2010-11-09 16:46
 https://issues.asterisk.org/view.php?id=18097#c128733 
---------------------------------------------------------------------- 
atheos, please try the adding the -n option like Junky has suggested and
reporting back if that works as you've expected it to or not. If it
doesn't, then please give us copies of your config files showing you're
disabling terminal colors and we can look into reopening this issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-09 16:46 bbryant        Note Added: 0128733                          
2010-11-09 16:46 bbryant        Status                   acknowledged =>
resolved
2010-11-09 16:46 bbryant        Resolution               open => won't fix   
2010-11-09 16:46 bbryant        Assigned To               => bbryant         
======================================================================




More information about the asterisk-bugs mailing list