I get a Segfault error message that is displayed after running this command in the terminal:
bash-3.2$ a.out < testfiles/inputs/tst1.txt 2> err.txt
[2]+ Done gedit err.txt
Segmentation fault
a.out only runs the sorting algorithm.
My question now is how can I redirect the Seg fault error message to the err.txt file.
Using 2> or other variables does not work.
Thanks in advance.
source
share