How to detect a cd has been inserted and then start a script
We are trying to automate the backup process on a cd-rw for our clients. Some will use a Mac mini, others a X-serve depending on their need. We created a shell script that is run every 8 hours to backup a postgres database automatically (and it is encryted at the same time). Everything workd perfectly but the cd burning. What we would like is to have a script auto detect when a cd-rw is inserted. With disk utilities, we can check if a cd is inserted and if it is rw (no problem there), but I would prefer not having to check with the script but instead the script that does the burning would start when a cd is inserted. How to do it?
Thanks
Patrice Drolet
Logiciels INFO-DATA inc.