This script will not work unless you have osascript installed.
% git clone git://github.com/iryw/Playing.git
% cd Playing
% chmod +x playing
% mv /usr/local/bin # Or anywhere you have defined in your PATH
% playing -nocolor
Now Playing: Shadow Child - String Thing
Note that you must have either iTunes or Spotify open to use this script.