On Mon, 9 Oct 2006 17:08:21 -0700, Grant wrote:

> mount /dev/cdrom && vobcopy -m -o MOVIE_NAME && mkisofs -l -o
> MOVIE_NAME.iso MOVIE_NAME && rm -rf MOVIE_NAME
> 
> How can I set that up in a script and execute just the script?

#!/bin/bash

mount /dev/dvd
TITLE=$(vobcopy -I 2>&1 | awk '/DVD-name:/ {print $3}')
vobcopy -m || exit
mkisofs -dvd-video -V ${TITLE} -o ${TITLE}.iso ${TITLE} || exit
rm -fr ${TITLE}
umount /dev/dvd

> This is also better for performance because the system won't have to
> decrypt while it's playing right?

That seems reasonable, although I've no idea how much effort is needed
to decrypt a DVD once the key is known.


-- 
Neil Bothwick

"Do you reply to our surveys.?"
[X]Never [ ]Always [ ]Sometimes

Attachment: signature.asc
Description: PGP signature

Reply via email to