|
![](/i/fill.gif) |
This (small) script will set up a dynamic que, that is you can add more
files to the que after the job has been started, by using a while loop
instead of for. I don't have POVRay working yet, so I haven't tested it
with that, but I've tested it with a simple echo command to verify that the
loop does work and send out the commands properly.
#! /bin/bash
# Begin que
POVCOMMAND=foo
QUEFILE=bar
while [ -s "$QUEFILE" ]; do
"$POVCOMMAND" "$(head -n 1 "$QUEFILE")" && sed -i 1d "$QUEFILE"
done
# End que
The quefile should consist of the source that you're rendering, one job per
line, nothing else. If you have your quefile set up and running, and at the
last minute want to add another job to the que, adding something to the last
position is as simple as "echo [sourcefile] >> [quefile]" replace the text
in [brackets] with the appropriate text, of course. Actually, you can get a
lot of control if you assign "bash -c" to POVCOMMAND, and the lines in
QUEFILE would be the same commands you'd type out in the command line
normally. A little more work, but a whole lot more control.
Post a reply to this message
|
![](/i/fill.gif) |