【问题标题】:What does '|' mean in file /proc/sys/kernel/core_pattern?'|' 是什么意思在文件/proc/sys/kernel/core_pattern 中是什么意思?
【发布时间】:2018-05-25 16:48:58
【问题描述】:
$ cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c %d %P

'|' 是什么意思文件中的意思是/proc/sys/kernel/core_pattern

【问题讨论】:

  • 意思是(take the stdout from this process) | (and tie it to stdin of this one)
  • @ben 这不是关于 bash 的问题,而是关于文件格式的问题。碰巧该格式采用了 bash 中也使用的符号,但这并没有使问题成为欺骗。

标签: linux ubuntu-16.04 sysctl


【解决方案1】:

在 linux 内核文档/usr/src/linux/Documentation/sysctl/kernel.txt.

[/proc/sys/kernel/]core_pattern 用于指定核心转储文件模式名称。

  • 如果模式的第一个字符是“|”,内核会将模式的其余部分视为要运行的命令。核心转储将写入该程序的标准输入而不是文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-12
    • 2017-06-11
    • 2018-03-05
    • 2023-03-27
    • 1970-01-01
    相关资源
    最近更新 更多