Dvdselect readdvd.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K
K
Zeile 1: Zeile 1:
 
Scripts vom [[dvdselect-plugin]].
 
Scripts vom [[dvdselect-plugin]].
  
#!/bin/sh
+
{{Box Datei | $PATH/dvdselect_readdvd.sh |
#
+
<pre>
# dvdselect_readdvd.sh
+
#!/bin/sh
#
+
#
# source: dvdselect-plugin
+
# dvdselect_readdvd.sh
#
+
#
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
+
# source: dvdselect-plugin
# the local drive.
+
#
#
+
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
# It gets the following parameters:
+
# the local drive.
#
+
#
# $1 = directory for dvd's (see plugin configuration menu)
+
# It gets the following parameters:
# $2 = name of dvd
+
#
# $3 = original dvd-device
+
# $1 = directory for dvd's (see plugin configuration menu)
 +
# $2 = name of dvd
 +
# $3 = original dvd-device
 
   
 
   
rm -f $1/$2.iso
+
rm -f $1/$2.iso
 
   
 
   
echo "dd if=$3 of=$1/$2.iso > /var/log/vdr/readdvd.log 2>&1" | at now
+
echo "dd if=$3 of=$1/$2.iso > /var/log/vdr/readdvd.log 2>&1" | at now
 +
</pre>
 +
}}
  
#!/bin/sh
+
{{Box Datei | $PATH/dvdselect_readdvd.sh |
#
+
<pre>
# dvdselect_readdvd.sh - v.0.1.linVDR
+
#!/bin/sh
#
+
#
# source: dvdselect-plugin
+
# dvdselect_readdvd.sh
#
+
#
# an LinVDR angepasst, da LinVDR kein at-Kommando hat
+
# source: dvdselect-plugin
# modified for LinVDR, because there is no at-command
+
#
#  
+
# an LinVDR angepasst, da LinVDR kein at-Kommando hat
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
+
# modified for LinVDR, because there is no at-command
# the local drive.
+
#  
#
+
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
# It gets the following parameters:
+
# the local drive.
#
+
#
# $1 = directory for dvd's (see plugin configuration menu)
+
# It gets the following parameters:
# $2 = name of dvd
+
#
# $3 = original dvd-device
+
# $1 = directory for dvd's (see plugin configuration menu)
 +
# $2 = name of dvd
 +
# $3 = original dvd-device
 
   
 
   
rm -f $1/$2.iso  
+
rm -f $1/$2.iso  
 
   
 
   
echo " \
+
echo " \
svdrpsend.pl -d localhost "MESG DVD einlesen gestartet" 2>/dev/null 1>/dev/null ; \
+
svdrpsend.pl -d localhost "MESG DVD einlesen gestartet" 2>/dev/null 1>/dev/null ; \
dd if=$3 of=$1/$2.iso ; \
+
dd if=$3 of=$1/$2.iso ; \
svdrpsend.pl -d localhost "MESG DVD $2 fertig" 2>/dev/null 1>/dev/null ; \
+
svdrpsend.pl -d localhost "MESG DVD $2 fertig" 2>/dev/null 1>/dev/null ; \
" > /tmp/dvdselect_read-temp.sh  
+
" > /tmp/dvdselect_read-temp.sh  
 
   
 
   
chmod 700 /tmp/dvdselect_read-temp.sh
+
chmod 700 /tmp/dvdselect_read-temp.sh
/tmp/dvdselect_read-temp.sh &
+
/tmp/dvdselect_read-temp.sh &
 
+
</pre>
 +
}}
  
 
[[Kategorie:Scripts]]
 
[[Kategorie:Scripts]]

Version vom 20. Juli 2005, 14:59 Uhr

Scripts vom dvdselect-plugin.

Datei
$PATH/dvdselect_readdvd.sh
#!/bin/sh
#
# dvdselect_readdvd.sh
#
# source: dvdselect-plugin
#
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
# the local drive.
#
# It gets the following parameters:
#
# $1 = directory for dvd's (see plugin configuration menu)
# $2 = name of dvd
# $3 = original dvd-device
 
rm -f $1/$2.iso
 
echo "dd if=$3 of=$1/$2.iso > /var/log/vdr/readdvd.log 2>&1" | at now


Datei
$PATH/dvdselect_readdvd.sh
#!/bin/sh
#
# dvdselect_readdvd.sh
#
# source: dvdselect-plugin
#
# an LinVDR angepasst, da LinVDR kein at-Kommando hat
# modified for LinVDR, because there is no at-command
# 
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
# the local drive.
#
# It gets the following parameters:
#
# $1 = directory for dvd's (see plugin configuration menu)
# $2 = name of dvd
# $3 = original dvd-device
 
rm -f $1/$2.iso 
 
echo " \
svdrpsend.pl -d localhost "MESG DVD einlesen gestartet" 2>/dev/null 1>/dev/null ; \
dd if=$3 of=$1/$2.iso ; \
svdrpsend.pl -d localhost "MESG DVD $2 fertig" 2>/dev/null 1>/dev/null ; \
" > /tmp/dvdselect_read-temp.sh 
 
chmod 700 /tmp/dvdselect_read-temp.sh
/tmp/dvdselect_read-temp.sh &