Mailinglist Archive: opensuse (1338 mails)

< Previous Next >
[opensuse] Batch queue or spooler?
  • From: Robert E A Harvey <bobharvey@xxxxxxxxxx>
  • Date: Sat, 01 Nov 2008 17:43:15 +0000
  • Message-id: <490C9533.2090903@xxxxxxxxxx>
From time to time I want to convert a number of .wav files to .mp3.

At the moment the script that creates the .wav calls lame immediately
the file is written. Snag is I end up with a lot of simultanious
instances of lame running and it is quite processor intensive. In fact,
it brings my little netbook to a screaching and sometimes fatal halt.

I'm thinking that what I need is a spooler that will react to new .wav
files by converting them, so that only one or two instances of lame run
at any one time. The idea would be to be transparent, so that if I
reboot the machine while conversion is going on it will be restarted at
start up. I don't mind if it starts from the beginning of the current
.wav, there is no need to resume where it left off.

I have thought of three ideas: use the at queue; use anacron; or write
a simple daemon spooling script with a foreach loop, lots of sleep
before looping and a nice command to run lame.

Or am I missing something? is there some supertool already written
which will encapsulate it all for me? some spooling service I have not
come across?

I liked the old VMS batch command where you could have as many jobs
running at the end of a queue as you liked, and they would automatically
re-start if the machine was restarted. SOmething like that would be cool.


TIA

Bob
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups