LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automatically copy stuff from cd;s (https://www.linuxquestions.org/questions/linux-newbie-8/automatically-copy-stuff-from-cd%3Bs-71342/)

starunj 07-09-2003 02:07 PM

automatically copy stuff from cd;s
 
i want a program/script that automatically copies media such as mp3's or video or images or rip audio cd's in to a specific folder on the hard disk depending on the media.
this is for a freevo box that i'm planning to make, i want a program that automatically does this, and this program should run in the background.
thanks a lot for any suggestions

FredrikN 07-10-2003 02:21 AM

Hi
A shellscript like this maybe ?

#!/bin/sh
mount /mnt/cdrom || { echo "mount failed" ; exit 1 }
echo "CD mounted"

cp /mnt/cdrom/* /home/starunj/files/

exit 0

starunj 07-10-2003 02:50 AM

awesome. . . . thanks a lot. i didnt know where to start.
from this, may be i can modify it to do the stuff i want.
do you know any good source for shell scripts/shell script help?

thanks again FredrikN

FredrikN 07-10-2003 02:54 AM

http://www.tldp.org/LDP/abs/html/textproc.html

is great or just use yahoo or something

starunj 07-10-2003 03:26 AM

thanks a lot, again


All times are GMT -5. The time now is 07:58 AM.