On 11/08/2011 01:32 AM, Heinrich Mueller wrote:
Am 08.11.2011 00:46, schrieb Ron Johnson:
[snip]

You could also implement it in a loop:

cd /home/g/Films
tmpfile=$(mktemp -u)
QUEUE=~/my_list_of_NZBs.txt
while [ -s $QUEUE ]; do
NZB=$(head -n1 $QUEUE)
pan --no-gui -o . --nzb "$NZB"
sed '1d' $QUEUE > $tmpfile
mv $tmpfile $QUEUE
done

AFAIK pan parses the command line after the --nzb switch in the way
that each following argument is _one_ nzb file.
pan --no-gui -o . --nzb nzb1.nzb nzb2.nzb etc ... works.


So "help" says.  :)

I like the file-based loop technique (which I use when converting TV episodes from a DVD) because it allows me to dynamically add/subtract items to/from the queue file.

--
Vegetarians eat vegetables, Humanitarians frighten me.

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to