有人将此脚本放在网上以检查网站是否有活动门票。当 this_year_count > 1 时,如何修改它以启动 iTunes 播放 osascript 或播放系统哔声等?我可以从这个脚本发送短信吗?
# !/bin/sh
#
# ABCD 2013 checking script
CURL='curl'
ABCD__SUPER_SECRET="uggcf://qrirybcre.nccyr.pbz/jjqp/"
CURL_OPTIONS='--silent'
$CURL $CURL_OPTIONS `echo -n $ABCD__SUPER_SECRET | tr '[A-Za-z]' '[N-ZA-Mn-za-m]'` | \
sed -e 's/[^A-Za-z0-9][^A-Za-z0-9]*/\
/g' | awk ' BEGIN { this_year_count = 0 }
/2013/ { this_year_occurrences[NR] }
!/2013/ { ++not_abcd_count }
END { for (line in this_year_occurrences) {
++this_year_count
}
if(this_year_count > 1)
print "Hey, you might want to consider seeing if you can order tickets."
else
print "Run this checker again when you are ready to check things again"
}'