Ubuntu 64 bits: file command does not display which programe generated core
On Ubuntu 64 bits, when you run ‘file /core’, it doesn’t show the executable file generated the core file.
You can use gdb -c to show the executable file. However, that invokes gdb to be interactive and not appropriate for integrating into shell scripts which I need to. The workaround for it is to use –batch which turns gdb into non-interactive.