如何通过stderr通知发送?

问题描述 投票:0回答:1

我使用键绑定运行程序,它们本身可以调用dmenu并在后台执行操作。我很乐意将stderr用管道传输到notify-send并在出现故障时得到通知。

这些程序不是从终端仿真器调用的,大多数情况下是sxhkdsxhkd替代xdg-open耦合。

例如,以这个例子为例:

jaro

如果我有sxhkd条目

jaro

我如何将stderr输出到通知?

shell pipe stderr
1个回答
0
投票

通知发送不适用于$ ls /root "/root": Permission denied (os error 13) $ ls /root 2> /dev/null $

但是,您可以尝试:sudo pip install notify-pipe

[接受super + Return ls /root ] >>

参见此处:piping

您可以将piping传送到https://github.com/ron7/notify-pipe并将其发送到通知管道

stderr
© www.soinside.com 2019 - 2024. All rights reserved.