首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >替代yad/Zenity促进团结

替代yad/Zenity促进团结
EN

Ask Ubuntu用户
提问于 2013-08-10 20:12:47
回答 1查看 1.6K关注 0票数 1

在Ubuntu 13.04中,yad和Zenity通知图标没有显示在Unity中。

我已经编写了一个脚本来使用通知图标来提醒我lftp下载进度。

在团结中有什么其他的选择吗?

EN

回答 1

Ask Ubuntu用户

发布于 2013-08-10 20:19:09

notify-send "notification text"作为bash脚本中的一行之一,通知应该会在屏幕左上角弹出几秒钟。

下面是一个示例,我在chron作业中使用一个脚本将我的用户数据备份到家中的服务器,在那里我使用通知-发送:

代码语言:javascript
复制
 #! /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

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/331046

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档