#! /usr/bin/sh
# this shell is auto-run at 10:30 everyday for alarmimg to sleep
music_dir=/home/gch/桌面
#cd $music_dir
rhythmbox $music_dir/夜曲.mp3 2>/dev/null &
echo
echo "It's time to sleep!\n"
echo "please prepare washing and sleeping!\n "
echo "Come on!Say yes!\n"
read answer
while [ $answer != 'yes' ]
do
echo "uh~~~!Come on!Say yes!prepare washing and sleeping!\n"
read answer
done
if [ $answer = 'yes' ]
then
echo "Ok! Good!Have a good dream!\n"
fi
killall -9 rhythmbox
exit 0
阅读(485) | 评论(0) | 转发(0) |