Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does '|' mean in file /proc/sys/kernel/core_pattern?

$ cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c %d %P

What does '|' mean in file /proc/sys/kernel/core_pattern?

like image 696
Ren Avatar asked Nov 30 '22 14:11

Ren


1 Answers

In the linux kernel documentation /usr/src/linux/Documentation/sysctl/kernel.txt.

[/proc/sys/kernel/]core_pattern is used to specify a core dumpfile pattern name.

  • If the first character of the pattern is a '|', the kernel will treat the rest of the pattern as a command to run. The core dump will be written to the standard input of that program instead of to a file.
like image 87
Amrom Avatar answered Dec 06 '22 04:12

Amrom