Dvdselect writedvd.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
Zeile 3: Zeile 3:
 
  # dvdselect_writedvd.sh - v.0.1
 
  # dvdselect_writedvd.sh - v.0.1
 
  #
 
  #
  # source: [[dvdselect-plugin]]
+
  # source: dvdselect-plugin
 
  #
 
  #
 
  # This script will by called by the vdr-plugin dvdselect to copy a DVD to
 
  # This script will by called by the vdr-plugin dvdselect to copy a DVD to
Zeile 12: Zeile 12:
 
  # $1 = filename of the iso file
 
  # $1 = filename of the iso file
 
   
 
   
  echo "dvdrecord -eject -v dev=0,0,0 speed=4 -dao $1" | at now
+
  echo "dvdrecord -eject -v dev=0,0,0 speed=4 -dao $1 > /var/log/vdr/writedvd.log 2>&1" | at now
  
 
  #!/bin/sh
 
  #!/bin/sh

Version vom 30. März 2005, 12:44 Uhr

#!/bin/sh
#
# dvdselect_writedvd.sh - v.0.1
#
# source: dvdselect-plugin
#
# This script will by called by the vdr-plugin dvdselect to copy a DVD to
# write a dvd iso image.
#
# It gets the following parameter:
#
# $1 = filename of the iso file

echo "dvdrecord -eject -v dev=0,0,0 speed=4 -dao $1 > /var/log/vdr/writedvd.log 2>&1" | at now
#!/bin/sh
#
# source: http://www.hoochvdr.info
#
# $1 = filename of the iso file

DVD_RECORDCMD="growisofs"
DVDPLUS_RECORD_OPTS="-dvd-compat -Z"
DVDWRITER=/dev/hdc

echo " \
unset SUDO_COMMAND ; \
svdrpsend.pl -d localhost "MESG DVD burn initiated" 2>/dev/null 1>/dev/null ; \
svdrpsend.pl -d localhost "QUIT" 2>/dev/null 1>/dev/null ; \
exec $DVD_RECORDCMD $DVDPLUS_RECORD_OPTS $DVDWRITER=$1 ; \
svdrpsend.pl -d localhost "MESG DVD burn completed" 2>/dev/null 1>/dev/null ; \
svdrpsend.pl -d localhost "QUIT" 2>/dev/null 1>/dev/null ; \
"| at now
#!/bin/sh
#
# source: http://www.hoochvdr.info
#
# Angepasst für LinVDR 0.7, da es kein at-Kommando gibt
# Modified for LinVDR 0.7, because there is no at-command available
#
# $1 = filename of the iso file

DVD_RECORDCMD="growisofs"
DVDPLUS_RECORD_OPTS="-dvd-compat -Z"
DVDWRITER=/dev/hdc

echo " \
svdrpsend.pl -d localhost "MESG DVD brennen gestartet" 2>/dev/null 1>/dev/null ; \
$DVD_RECORDCMD $DVDPLUS_RECORD_OPTS $DVDWRITER=\"$1\" ; \
svdrpsend.pl -d localhost "MESG DVD fertig" 2>/dev/null 1>/dev/null ; \
" > /tmp/dvdselect-burn-temp.sh

chmod 700 /tmp/dvdselect-burn-temp.sh
/tmp/dvdselect-burn-temp.sh &