pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] Automating NZB downloads


From: Ron Johnson
Subject: Re: [Pan-users] Automating NZB downloads
Date: Tue, 08 Nov 2011 05:03:47 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Mnenhy/0.8.4 Thunderbird/3.1.15

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]