Files
openfoam/tutorials/IO/systemCall/system/systemCall
2019-08-30 16:45:45 +02:00

30 lines
546 B
C++

// -*- C++ -*-
// An example of using systemCall
system
{
type systemCall;
libs (utilityFunctionObjects);
// Execute on the master process only
master true;
executeCalls
(
"echo execute: shell $$"
);
writeCalls
(
"echo \*\*\* writing data \*\*\*"
);
endCalls
(
"echo \*\*\* end of run \*\*\*"
"grep application system/controlDict"
"echo \*\*\* done \*\*\*"
);
}
// ************************************************************************* //