使用道具 举报
Post by HuiCai #!/bin/bash #File name: notice if [ $# -lt 2 ] then echo "Usage: notice 几点:几分 内容" exit fi while [ 1 ] do if [ "`date +%R`" == "$1" ] then Xdialog --title "到时提醒" --msgbox "$2" 5 20 exit fi sleep 10 done 复制代码#!/bin/bash Day=$(date +%m-%d) exec < $HOME/script/reminddata while read BirDay do if [ $Day == ${BirDay%%\ *} ] then wall <<-fin "$BirDay" fin fi done复制代码
本版积分规则 发表回复 回帖后跳转到最后一页