Dvdselect writedvd.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 32: | Zeile 32: | ||
svdrpsend.pl -d localhost "QUIT" 2>/dev/null 1>/dev/null ; \ | svdrpsend.pl -d localhost "QUIT" 2>/dev/null 1>/dev/null ; \ | ||
"| at now | "| 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 & | ||
[[Kategorie:Scripts]] | [[Kategorie:Scripts]] |
Version vom 8. Januar 2005, 22:37 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" | 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 &