pan-users
[Top][All Lists]
Advanced

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

[Pan-users] Automating NZB downloads


From: Graham Lawrence
Subject: [Pan-users] Automating NZB downloads
Date: Tue, 8 Nov 2011 14:13:30 -0800

>>> Date: Sun, 06 Nov 2011 20:15:54 -0600
>>> Excerpted From: Ron Johnson<address@hidden>
>>

> That sounds like a weird use of arrays.
>
Its a great convenience.  If you have a list of items and you are
interested only in one or two of them, using an array gives you
instant identification of them, like so:-

IFS=$'\x0A'      # elements separated by line breaks only
nzb=($(ls /home/g/dnlds/*.nzb))
rm ${nzb[0]}     # ditch previous download
pan --no-gui -o /home/g/Films --nzb "${nzb[1]}"      # make download
IFS=$'\x20'$'\x09'$'\x0A'$'\x0D'      # reset default

Pretty much if I watch a movie, I download one, which minimizes the
amount of HD I must devote to movies.  Otherwise they eat up the HD at
a fantastic rate.  And its virtually all done with bash internals,
which I think will be more efficient than calling a separate app like
head (though its no big deal either way).



reply via email to

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