#!/bin/bash ########################################################## # Created on: Tue Feb 24 20:12:05 EST 2009 # This temporary script created when saving dvb shows # with the script dvb-save. This script is overwritten # every time dvb-save is run and another dvb-t show is # scheduled to be saved ##########################################################n # Declare variables path=/videos name=the-girl-in-the-fireplace duration=60m timestamp=`date +%d-%b-%R` # Begin giving commands fuser -k /dev/dvb/adapter0/frontend0 dvbstream -qam 64 -cr 3_4 -gi 16 -bw 7 -tm 8 -f 226500 512 650 -ps -o > $path/$name-$timestamp.mpg & dvbstream_pid=$! sleep $duration kill $dvbstream_pid