Thomas Schmitt wrote:
Hi,

(Note to myself: This is the extract thread, not the
  thread about getting .iso files from /dev/sr0.)

Stuart Longland wrote:
for f in /media/distributionA/*.iso; do
       bn="$( basename "${f}" .iso )"
       dn="$( dirname "${f}" )"
       mount "${f}" /mnt/cdrom -o loop
       rsync -aP /mnt/cdrom "${dn}/${bn}"/
       umount /mnt/cdrom
done

[snip]

Richard Owlett wrote:
Is there a way to pause your loop to swap DVDs?

   while true
   do
     echo "Insert medium, wait until blinking ends, press Enter key (or Ctrl+C to 
end)"
     read dummy

     ... mount /dev/sr0, rsync or cp, umount /dev/sr0
         or xorriso ... -indev /dev/sr0 ...

   done


Now have half dozen scripting tutorials up.
I sometimes take the long way 'round [If retirement isn't for education, what use is it?]


Reply via email to