# wget http://johnath.com/beep/beep-1.2.2-1.src.rpm
# rpm -ivh beep-1.2.2-1.src.rpm
# cd /usr/src/redhat/SPECS
# vi /usr/src/redhat/SPECS
# diff beep.spec beep.spec.ori
11c11
< License: GPL
---
> Copyright: GPL
こんな感じで直して
#rpmbuild --bb beep.spec
これでbeepをインストールする。
# cat /usr/local/abin/Timer
#!/bin/sh
echo ""
echo "Input time"
echo ""
read t
echo ""
echo "Set time $t"
echo ""
DATE1=`date | awk '{print $5}'`
echo "$DATE1"
sleep $t
DATE1=`date | awk '{print $5}'`
echo "$DATE1"
beep -f 1000 -l 120 -n -f 500 -l 12
Comments