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) \nTAKE A REST "| /usr/local/bin/toilet -t --gay > /dev/$TTY done

计划任务 * */1 * * * /bin/bash /usr/shellscript/rest.sh

效果图

linux下有趣的工具

 

相关文章:

  • 2021-08-20
  • 2021-06-04
  • 2021-11-20
  • 2022-02-25
  • 2021-11-07
  • 2022-12-23
  • 2021-11-24
猜你喜欢
  • 2021-06-08
  • 2022-01-07
  • 2021-12-18
  • 2021-12-18
  • 2021-12-05
  • 2022-03-04
相关资源
相似解决方案