Script to burn DVD on the fly?

Hi folks,

One DVD Writer installed on PC

To duplicate Data DVD or DVD Installer I run following steps;

1)
$ dd if=/dev/dvd of=image.iso bs=2048

to create an ISO image

2)
Remove the DVD disc on the tray and insert a blank DVD disc for
burning. Then run;

3)
$ growisofs -dvd-compat -Z /dev/dvd=image.iso

Done

Following command worked for me previously burning CD on the fly;
mkisofs -R -joliet-long -graft-points -hide-rr-moved \
/dir-A/=/path/to/dir-A/ \
/dir-B/=/path/to/dir-B/ \
/dir-C/=/path/to/dir-C/ |\
cdrecord dev=ATA:1,0,0 -v -eject -

Now I'm trying to burn DVD on the fly w/o creating ISO image. I haven't figure out;

  • how to modify the command burning CD on the fly for burning DVD

  • how to eject the DVD disc automatically after the command at 1) finished.

  • how to evoke command at 3) automatically after an blank DVD disc inserted.

Please shed me some light. TIA

B.R.
satimis