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 17:41:42 -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 04:13 PM, Graham Lawrence wrote:
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

Clever.

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


Ok.  Our goals are different so out techniques are different.

Pretty much if I watch a movie, I download one, which minimizes the
amount of HD I must devote to movies.

Disks are cheap.  (Well, they were before the Thai flooding.)

                                       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).


--
Vegetarians eat vegetables, Humanitarians frighten me.



reply via email to

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