在Ubuntu 13.04中,yad和Zenity通知图标没有显示在Unity中。
我已经编写了一个脚本来使用通知图标来提醒我lftp下载进度。
在团结中有什么其他的选择吗?
发布于 2013-08-10 20:19:09
将notify-send "notification text"作为bash脚本中的一行之一,通知应该会在屏幕左上角弹出几秒钟。
下面是一个示例,我在chron作业中使用一个脚本将我的用户数据备份到家中的服务器,在那里我使用通知-发送:
#! /bin/bash
#
# First, we send a notification to the user that we've started.
notify-send "rsync backup started"
#
# cd to home.
cd ~/
#
# rsync my local home to rsync-marc on vulcan.
rsync --exclude-from rsync-excluded-files.txt -azvv -e ssh ~/ xxxx@xxxxxxxxx.org:/media/marc/1d0b8719-f064-40a8-9589-4e65583788a8/marc/marc-rsync
#
# Last, we send a notification to the user that we've started.
notify-send "rsync backup completed"有关您可以使用的许多不同参数的更多信息,比如始终使用man notify-send。
https://askubuntu.com/questions/331046
复制相似问题