Changeset 342 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/abstractSoftware.cc
- Timestamp:
- Feb 26, 2013, 2:35:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/abstractSoftware.cc
r316 r342 6 6 globParamPtr_ = NULL; 7 7 dataManager_ = NULL; 8 9 8 } 10 9 … … 18 17 bool abstractSoftware::launchJob(string commandLine, string& resul) 19 18 { 19 bool ExecuteStatus = true; 20 21 FILE* pp = popen(commandLine.c_str(), "r"); 20 22 ostringstream sortie; 21 bool ExecuteStatus = true;22 FILE* pp = popen(commandLine.c_str(), "r");23 23 if (pp == NULL) { 24 24 sortie << " launching failed : " << commandLine << endl; 25 25 ExecuteStatus = false; 26 } 27 else { 28 cout << " executind command : " << commandLine << endl; 26 } else { 27 cout << " executing command : " << commandLine << endl; 29 28 // on copie la sortie dans le fichier assigne 30 29 char buf[132];
Note: See TracChangeset
for help on using the changeset viewer.