I have a bunch of CD's I want to copy to the HD.
I made a simple script
Now what I want to do is make the script so it waits for the tray to close and the cdrom to auto mount then start the next copy cycle..Code:#!/bin/sh cp /media/cdrom/* /media/terradrive/. eject
so
cp /media/cdrom/* /media/terradrive/.
eject
wait for auto mount after try goes back in..
cp /media/cdrom/* /media/terradrive/.
eject
wait for auto mount after try goes back in..
and so it.
Is there a wait command I can use or a triggered event for when the cdrom auto mounts I can include in my script ?
Bookmarks