cygwin - 什么是 cygwin/Windows 相当于 Linux 的 notify-send

标签 cygwin libnotify

Linux 有命令 notify-send 用于向桌面管理器发送用户通知。 (在许多环境中,这些显示为屏幕角落的弹出窗口,以及低电量警告和其他系统消息。)我在监控和备份脚本中使用它。

Cygwin 似乎没有 lib-notify,那么此命令是否有 Windows 等效项?网络搜索让我找到了有关从 Windows 系统托盘/通知区域运行批处理文件的文章,或者尝试从批处理文件中清理系统托盘,但我还没有找到一种方法来从后台进程中生成不显眼的用户消息。

最佳答案

你可以试试notifu .它是一种命令行通知应用程序,因此您可以在 cygwin 中使用它。

用法:notifu /p title /m message

关于cygwin - 什么是 cygwin/Windows 相当于 Linux 的 notify-send,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16227971/

相关文章:

python-3.x - 使用 libnotify 的 Python 3 脚本作为 cron 作业失败

python - libnotify 通知控制台,而不是 $DISPLAY?

c - 简单的 libnotify "hello world"程序无法在 Ubuntu 20.04 上编译并出现链接器错误

linux - 堆叠多个 libnotify 弹出窗口

bash - 解释 sed、grep 和 cut 语法

python - Cygwin gcc 问题 - 找不到 Python.h

installation - Cygwin 没有正确安装

haskell - Ctrl-c 导致 cygwin 在 ghci 上崩溃

java - 如何从 Cygwin bash shell 启动在 Eclipse 中开发的 java CLI 程序?

ruby-on-rails - 守卫找不到 libnotify 也无法禁用通知但抛出错误