core files names

  • Follow


Hi all,

        I would like to know if there is a way to
control the core files naming scheme.
More precisely, the pid of the process is appended
at the end of the file name and i wish to avoid that, so
that newer core files overwrite previous ones.
(I use Mandrake 9.1 if this info is relevant)

Thanks in advance

Yves


0
Reply Tux 10/14/2003 5:08:06 PM

in comp.unix.programmer i read:

>        I would like to know if there is a way to
>control the core files naming scheme.

hack your kernel.

-- 
a signature
0
Reply those 10/15/2003 2:03:51 AM


On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:

> Hi all,
> 
>         I would like to know if there is a way to
> control the core files naming scheme.
> More precisely, the pid of the process is appended
> at the end of the file name and i wish to avoid that, so
> that newer core files overwrite previous ones.
> (I use Mandrake 9.1 if this info is relevant)

echo 0 > /proc/sys/kernel/core_uses_pid

 It will be set on reboot via. /etc/sysctl.conf

-- 
James Antill -- james@and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/

0
Reply James 10/15/2003 3:51:19 AM

On Tue, 14 Oct 2003 23:51:19 -0400, James Antill
<james-netnews@and.org> wrote:

>On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:
>
>> Hi all,
>> 
>>         I would like to know if there is a way to
>> control the core files naming scheme.
>> More precisely, the pid of the process is appended
>> at the end of the file name and i wish to avoid that, so
>> that newer core files overwrite previous ones.
>> (I use Mandrake 9.1 if this info is relevant)
>
>echo 0 > /proc/sys/kernel/core_uses_pid
>
> It will be set on reboot via. /etc/sysctl.conf

And kernel 2.6 has /proc/sys/kernel/core_pattern -- see the proc(5)
man page for details.

Cheers,

Michael

0
Reply Michael 10/15/2003 5:38:00 AM

Michael Kerrisk wrote:

> On Tue, 14 Oct 2003 23:51:19 -0400, James Antill
> <james-netnews@and.org> wrote:
> 
>>On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:
>>
>>> Hi all,
>>> 
>>>         I would like to know if there is a way to
>>> control the core files naming scheme.
>>> More precisely, the pid of the process is appended
>>> at the end of the file name and i wish to avoid that, so
>>> that newer core files overwrite previous ones.
>>> (I use Mandrake 9.1 if this info is relevant)
>>
>>echo 0 > /proc/sys/kernel/core_uses_pid
>>
>> It will be set on reboot via. /etc/sysctl.conf
> 
> And kernel 2.6 has /proc/sys/kernel/core_pattern -- see the proc(5)
> man page for details.
> 
I have kernel 2.4, so i will try James Antill's solution.

Thanks for your answers.
0
Reply Tux 10/15/2003 1:26:14 PM

4 Replies
195 Views

(page loaded in 0.073 seconds)

Similiar Articles:













7/24/2012 2:07:22 PM


Reply: