]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdExecSystemCommand.cxx
#3248 BBTK Feature New Normal - box bbstdExecSystemCommand Verbose option
[bbtk.git] / packages / std / src / bbstdExecSystemCommand.cxx
index 63beb0c99eb947c43fe20cfddf75de534b9caf7a..43c9dc59a1c209ef9a6a57f0c57ec923edeeeda5 100755 (executable)
@@ -46,10 +46,13 @@ namespace bbstd
   void ExecSystemCommand::bbUserSetDefaultValues() 
   { 
     bbSetInputIn("help");
+       bbSetInputVerbose(true);
   }
+
   void ExecSystemCommand::bbUserInitializeProcessing() 
   { 
   }
+
   void ExecSystemCommand::bbUserFinalizeProcessing() 
   {
   }
@@ -80,8 +83,11 @@ namespace bbstd
 //      #if defined(_WIN32)
 //         ccommand="start /b "+ccommand;
 //      #endif // defined(_WIN32)      
-         std::cout << "*** Executing system command : '"<<ccommand<<"'"<<std::endl;
-         
+
+               if (bbGetInputVerbose()==true) 
+               {
+                       std::cout << "*** Executing system command : '"<<ccommand<<"'"<<std::endl;
+               }  
          result = system ( ccommand.c_str() );
          
          //std::cout << "DFGO - ExecSystemCommand::DoProcess result=" << result << std::endl;