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