add record.sh for recording samples.