--- record.sh 2009/01/04 14:41:11 1 +++ record.sh 2009/10/27 00:08:44 6 @@ -9,7 +9,7 @@ mount | grep -q ' /mnt/usb ' || mount /mnt/usb || exit -killall mplayer +#killall mplayer function info() { echo $1 | aosd_cat & @@ -19,14 +19,14 @@ info "Recording started to $file" ( -mplayer -ni -quiet dvb://$prog -dumpstream -dumpfile $file.mpg \ +mplayer -ni -quiet "dvb://$prog" -dumpstream -dumpfile "$file.mpg" \ | logger -t mplayer-record -info "Recording of $file stopped "`ls -al $file` +info "Recording of $file stopped "`ls -al "$file"` ) & sleep 1 -mplayer -cache 100 -ni -quiet $file.mpg -edl $file.edl \ +mplayer -cache 100 -ni -quiet "$file.mpg" -edl "$file.edl" \ | logger -t mplayer stty sane