robinbowes wrote:
John,
You can do this much better (IMHO) with rsync.
Try something like:
rsync -a --include=*.mp3 /home/john/Music/ /home/john/converted
Actually I completely agree now!
The above works a lot better than my way with cron.
The only problem (which is already a known bug) is that flac2mp3 throws
the toys out of the cot if it comes accross odd file names with odd
characters in in especially I'm and don't. Will take a look tomorow
Obviously change /home/john/converted to the directory where you
want
all your mp3's and converted flacs to be placed. Also add the path
to flac2mp3 (I have copied mine to /usr/bin/ therefore it doesnt need
a path).
If I work out how to use cron, I should be able to set it up to run
each night.
Personally, I'd setup separate cron jobs for the mp3 sync and the flac
conversion.
Edit your crontab using:
# crontab -e
Add the following lines to the crontab to run the above rsync command
and flac2mp3:
0 2 * * * rsync -a --include=*.mp3 /home/john/Music
/home/john/converted
0 2 * * * flac2mp3 --quiet /home/john/Music /home/john/converted
This starts both processes at 02:00 every day.
Make sure both rsync and flac2mp3 are in a directory that is in the
PATH
of your cron environment (not necessarily the same as your shell
environment)
I will also look into running lame with a lower nice value otherwise
things could get very slow on my server if the convert job extends into
the day time!
The easiet way to do this is to use nice in the crontab, e.g.:
0 2 * * * nice flac2mp3 --quiet /home/john/Music /home/john/converted
Again. make sure nice is in the path.
Sorry, this is linux specific I think.
linux/unix
I've set up a bunch of mail lists relating to flac2mp3.
Details are here:
http://robinbowes.com/article.php/20050611002827903
crossposted to the the above mailing list, but figured more people
would read it here.
I've also posted this reply there.
R.
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping