More than 5 years have passed since last update.
$ alias pong='perl -nle '\''print "display notification \"$_\" with title \"Terminal\""'\'' | osascript' $ echo hoge | pong
日本語もおk!
$ echo Javaだいすき | pong
Mavericksでは通知センターをスクリプトから使えるようになった
Register as a new user and use Qiita more conveniently