Dvdswitch readdvd.sh: Difference between revisions

From VDR Wiki
Jump to navigation Jump to search
(Created page with "See dvdswitch-plugin. {{Box Datei | $PATH/dvdswitch_readdvd.sh | <pre> #!/bin/sh # # dvdswitch_readdvd.sh # # source: dvdselect-plugin # # This script will by c...")
 
No edit summary
 
Line 1: Line 1:
See [[dvdswitch-plugin]].
See [[dvdswitch-plugin]].


{{Box Datei | [[Struktur|$PATH]]/dvdswitch_readdvd.sh |
{{Box File | [[Struktur|$PATH]]/dvdswitch_readdvd.sh |
<pre>
<pre>
#!/bin/sh
#!/bin/sh

Latest revision as of 15:38, 2 December 2013

See dvdswitch-plugin.

File
$PATH/dvdswitch_readdvd.sh
#!/bin/sh
#
# dvdswitch_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"
mkdir -p "$1/" 

echo "dd if=$3 of=\"$1/$2.iso\" > /var/log/vdr/readdvd.log 2>&1" | at now