1.toilet(在CentoOS7 安装)
yum install -y https://raw.githubusercontent.com/sliqua-hosting/repo/master/centos/7/x86_64/libcaca-0.99-0.19.beta19.el7.centos.x86_64.rpm yum install -y https://raw.githubusercontent.com/sliqua-hosting/repo/master/centos/7/x86_64/libcaca-devel-0.99-0.19.beta19.el7.centos.x86_64.rpm wget http://caca.zoy.org/raw-attachment/wiki/toilet/toilet-0.3.tar.gz && tar zxvf toilet-0.3.tar.gz && cd toilet-0.3 && ./configure && make && make install
应用:配置计划任务,定期提醒休息
#!/bin/bash
#filename:/usr/shellscript/rest.sh TTYS=`who | awk '{print $2}'` for TTY in $TTYS do echo -e "$(date +%r) TAKE A REST "| /usr/local/bin/toilet -t --gay > /dev/$TTY done
计划任务 * */1 * * * /bin/bash /usr/shellscript/rest.sh
效果图