One of the binaries which I am using in my shell script is causing a segmentation fault (RETURN VALUE: 139)
And even though, I am redirecting both stdout and stderr to a logfile, the Segmentation Fault error messages is displayed in the terminal when I am running the shell script.
Is it possible to redirect this message from Segfault to a logfile ??
Well, I am answering my own question.. 🙂
I found the answer here
How can I suppress the output due to a SIGSEGV or a SIGFPE in a Fortran 90 program?
The trick is to add
in the shell script.
This will redirect all the messages from the shell to a log file