[asterisk-bugs] [Asterisk 0016416]: Portability tweaks to contrib/scripts/safe_asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 8 17:03:46 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16416 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16416
Category:                   General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 233774 
Request Review:              
====================================================================== 
Date Submitted:             2009-12-08 17:03 CST
Last Modified:              2009-12-08 17:03 CST
====================================================================== 
Summary:                    Portability tweaks to contrib/scripts/safe_asterisk
Description: 
The attached patch addresses several minor issues that have to do with
improving the script's operation on non-Linux platforms:

1) Use mail instead of mailx (the latter supports specifying the subject
with -s)
2) Change several test cases to work with old versions of test
3) Change the invocation of the date(1) command to work with non-GNU
versions
4) Fix some minor bugs (such as the way id(1) is called and the order of
shell output redirects)
5) Improve the error message to be more helpful when/if Asterisk crashes.

There may be other portability issues, but this script has been tested on
OSX, Linux and OpenSolaris and works on those platforms.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-08 17:03 bklang         New Issue                                    
2009-12-08 17:03 bklang         Asterisk Version          => SVN             
2009-12-08 17:03 bklang         Regression                => No              
2009-12-08 17:03 bklang         SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.1           
2009-12-08 17:03 bklang         SVN Revision (number only!) => 233774          
======================================================================




More information about the asterisk-bugs mailing list