ToddAndMargo via users writes:

On 8/11/19 6:01 PM, Sam Varshavchik wrote:
Now, if you really want a core file, you don't really have to do any of that. You can leave core_pattern at its default value, and just pull the core file down, upon demand. I have a small shell script in my $HOME/bin directory:

$ cat ~/bin/core
#!/bin/bash

exec coredumpctl -o core dump

And after something dumps core, I just execute "core", and the core file appears in my current directory.


I do not have access to the shell that the program
is running out of.  But I DO have access to the
script that the program runs from.  Any way to add
something to the script?  (Script exists after
the program starts [systemctl].)

Well, if the program exits with the exit code that indicates that it dumped core, you can have your script automatically run coredumpctl to extract the core out.

Attachment: pgpe4wZDEJwQt.pgp
Description: PGP signature

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to