#!/bin/bash
##########################################################
# Created on: Fri Apr 25 11:36:07 EST 2008
# 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=./
name=testabc
duration=1m
timestamp=`date +%d-%b-%R`

# Begin giving commands
saving a movie to $path/$name-$timestamp.mpg
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
