]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdExecSystemCommand.cxx
new
[bbtk.git] / packages / std / src / bbstdExecSystemCommand.cxx
index 0447b2b2015699a6049788369e0f4eae7c41ac37..1e8ee9e8c2d8bef4736b8ff4c554e08d5b943751 100755 (executable)
@@ -6,7 +6,7 @@ namespace bbstd
 {
 
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ExecSystemCommand);
-  BBTK_USER_BLACK_BOX_IMPLEMENTATION(ExecSystemCommand,bbtk::AtomicBlackBox);
+  BBTK_BLACK_BOX_IMPLEMENTATION(ExecSystemCommand,bbtk::AtomicBlackBox);
   
   void ExecSystemCommand::bbUserConstructor() 
   { 
@@ -31,13 +31,14 @@ namespace bbstd
          {
            ccommand=bbGetInputIn().substr(pos1,pos2-pos1);
          }
-       for (int i=0 ; i < ccommand.length() ; i++)
+       for (unsigned int i=0 ; i < ccommand.length() ; i++)
          {
            if (ccommand[i]==39)
              {
                ccommand[i]=34;
              }
-         }                     
+         }     
+       std::cout << "*** Executing system command : '"<<ccommand<<"'"<<std::endl;
        system ( ccommand.c_str() );
        pos1=pos2+1;
        pos2 = bbGetInputIn().find(";",pos2+1);