1 #include "bbstdExecSystemCommand.h"
2 #include "bbstdPackage.h"
3 #include "bbtkInterpreter.h"
8 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ExecSystemCommand);
9 BBTK_USER_BLACK_BOX_IMPLEMENTATION(ExecSystemCommand,bbtk::AtomicBlackBox);
11 void ExecSystemCommand::bbUserConstructor()
17 void ExecSystemCommand::DoProcess()
21 pos2 = bbGetInputIn().find(";",pos1);
28 ccommand=bbGetInputIn().substr(pos1,bbGetInputIn().length()-pos1 );
32 ccommand=bbGetInputIn().substr(pos1,pos2-pos1);
34 for (int i=0 ; i < ccommand.length() ; i++)
41 system ( ccommand.c_str() );
43 pos2 = bbGetInputIn().find(";",pos2+1);
47 char *str = (char*)bbGetInputIn().c_str();
49 pch = strtok (str,";");
52 std::string ccommand(pch);
53 for ( i=0 ; i < ccommand.length() ; i++)
61 // bbtk::Interpreter::mGlobalInterpreter->InterpretLine( ccommand );
62 system ( ccommand.c_str() );
63 pch = strtok (NULL, ";");
65 // bbSetOutputOut( bbGetInputIn() );
70 } // EO namespace bbstd