2006-06-28から1日間の記事一覧
$ cat checkepg.sh cd `/usr/bin/dirname $0` IP=192.168.2.6 if [ -n "$1" ]; then IP=$1; fi rm -f epg.xml curl http://${IP}:10000/conf/cgi/justc.cgi?epghist -o epg.xml cat epg.xml | grep "<day>`date -d '1 days ago' '+%-d'`</day>" && exit 0 cat epg.xml |…
IP=192.168.2.6 if [ -n "$1" ]; then IP=$1; fihttp://www.linux.or.jp/JM/html/GNU_sh-utils/man1/test.1.html -n string string の長さが 0 より大きければ真。