stdout

Dear All,

I am using some C++ libraries which gives out some copyright information when I use them in my code. During batch run I am wasting lot of time due to this. Is there any way out ?

Regards,
Send stdout to /dev/null on UNIX or nul on Windows.
Hmmm ... Thanks for the solution, from command prompt it is working. But whenever I am using it from a c++ code like as follows :

const unsigned M = array.size() ;
for(unsigned i = 0 ; i < M ; i++){
std::cout << " Simulation Run Iteration Number = " << i << "("<< M << ")\n";
const unsigned N = array[i].size() ;
std::ostringstream s ;
s << "./simulate.exe" ;
for (unsigned j = 0 ; j < N ; j++){ s << " " << array[i][j] ; }
s << " &> /dev/null";
//std::cout << s.str().c_str() << " \n";
int status = system(s.str().c_str());
if(status != 0){
std::cerr << " ERR!: Error from sc_main " << std::endl;
exit(1);
}

It is not working - instead, it is opening parallel simulations!

Regards,
Topic archived. No new replies allowed.