Fixed a bug where delete didn't work from a page where you supplied a "path".
[recordtv.git] / scripts / record_dvb_to_ts_cat.sh
blob8c52ea1ac4d37525f6b3a608dc324ab10c84c5a6
1 #!/bin/bash
3 # Example:
5 # ./record_dvb_to_ts.sh "BBC ONE" eastenders 1800 \
6 # "../scheduled_recordings/eastenders.rtvinfo"
8 # ... will record into a file called eastenders.flv
10 echo '$ killall tzap'
11 killall tzap
13 if [ "$?" == "0" ]; then
15 echo '$ sleep 10s'
16 sleep 10s
17 }; fi
19 echo '$ tzap -r "'$1'" > /dev/null &'
20 tzap -r "$1" > /dev/null &
22 echo '$ sleep 1s'
23 sleep 1s
25 echo 'mv "'$4'" "'$2'.rtvinfo"'
26 mv "$4" "$2.rtvinfo"
28 echo '$ cat /dev/dvb/adapter0/dvr0 > "'$2'.ts" &'
29 cat /dev/dvb/adapter0/dvr0 > "$2.ts" &
31 echo '$ sleep '$3's'
32 sleep $3s
34 echo '$ kill %cat'
35 kill %cat
37 echo '$ kill %tzap'
38 kill %tzap
40 echo '$ sleep 1s'
41 sleep 1s