I have an extensive DVD collection, and I want them backed up in case of a fire or other problem. I am trying to create a script to automatically prompts me for the name of the DVD and then backs the dvd up when I insert it. Following is what I have so far:
Code:
#!/bin/bash
name=0
read name
dvdbackup -M -n $name -o /home/seashell/Videos/Editing/DVDrip &
pid=$!
trap "
[ -e /proc/$pid ] && kill $pid
eject /dev/dvd
" EXIT
while [ -e /proc/$pid ]; do
sleep 0.25
echo -n .
done | zenity --progress --auto-kill
I am running kubuntu 10.10. When I run this in a terminal, nothing happens. Do you have any idea what I did wrong here?