Dvdselect writedvd.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 13: | Zeile 13: | ||
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" | at now | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | # $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 | ||
[[Kategorie:Scripts]] | [[Kategorie:Scripts]] |
Version vom 6. Januar 2005, 20:36 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 # $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