10
$ 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?

Ren
  • 2,852
  • 2
  • 23
  • 45
  • Possible duplicate of [What is a simple explanation for how pipes work in BASH?](https://stackoverflow.com/questions/9834086/what-is-a-simple-explanation-for-how-pipes-work-in-bash) – Ben Dec 12 '17 at 04:38
  • It means `(take the stdout from this process) | (and tie it to stdin of this one)` – David C. Rankin Dec 12 '17 at 06:35
  • 2
    @ben this isn’t a question about bash, it’s about a file format. It happens to be that the format adopts a notation used also in bash, but that doesn’t make the question a dupe. – Aryeh Leib Taurog Jul 20 '18 at 09:48

1 Answers1

27

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.
Community
  • 1
  • 1
Amrom
  • 386
  • 4
  • 6