Module: nagvis Branch: master Commit: 10ada6e5daa9d682d70edf06df02b1f38c916b00 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=10ada6e5daa9d682d70edf06df02b1f38c916b00
Author: LaMi <[email protected]> Date: Wed Jan 13 09:42:29 2010 +0100 Suppress stdout and stderr of automaps graphviz binary checks --- share/server/core/classes/NagVisAutoMap.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/NagVisAutoMap.php b/share/server/core/classes/NagVisAutoMap.php index c700e91..9933cc0 100644 --- a/share/server/core/classes/NagVisAutoMap.php +++ b/share/server/core/classes/NagVisAutoMap.php @@ -507,7 +507,7 @@ class NagVisAutoMap extends GlobalMap { * configured path */ // Check if dot can be found in path (If it is there $returnCode is 0, if not it is 1) - exec('which '.$binary, $arrReturn, $returnCode1); + exec('which '.$binary.' >/dev/null 2>&1', $arrReturn, $returnCode1); if(!$returnCode1) { $this->CORE->getMainCfg()->setValue('automap','graphvizpath',str_replace($binary,'',$arrReturn[0])); ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
