For example if I have a python file test.py
.
Running python test.py
in command line crashes with message:
Segmentation Fault(core dumped)
How can I save such message into a txt file with a script? (Imagine I have test1.py, test2.py, test3.py... and they all crash. I want to collect the crash log of them all and do some analysis)