シェルスクリプト@smartmontools、これで動くかな

---

(前略)

_HDDTMP="うにょらら"
_FILENAME=`date +%Y%m%d`.txt

_DATE=`date +"%Y/%m/%d %H:%M:%S"`
_AD10="/うにょらら/smartctl -a /dev/ad10 | grep Temperature | awk '{print $10}'"
_AD12="/うにょらら/smartctl -a /dev/ad12 | grep Temperature | awk '{print $10}'"

echo ${_DATE}${_AD10}${_AD12} >> ${_HDDTMP}/${_FILENAME}