some code here.... system(bsub catchsegv sample.exe sample.dat); code..