Clear queue directory

2 views
Skip to first unread message

Blade1024

unread,
Oct 17, 2008, 12:11:33 PM10/17/08
to nzbperl
Hi,

Who knows how to make nzbperl to remove the nzb file from the queue
directory as soon as it finishes downloading it?

Cheers

Matthew Stewart

unread,
Oct 17, 2008, 10:08:58 PM10/17/08
to nzb...@googlegroups.com
I dont delete them automatically, just in case I need to reuse the nzb.
Instead I use the postnzb part of the config to run a script to append
".done" onto the end of the filename.

Matt

Matvey Teplov

unread,
Oct 18, 2008, 1:43:23 PM10/18/08
to nzb...@googlegroups.com
Hoi,

How are you are finding out the NZB it just finished? Yourself?

Cheers

Matthew Stewart

unread,
Oct 18, 2008, 3:28:30 PM10/18/08
to nzb...@googlegroups.com
No, nzbperl does it. When the current nzb is finished, there is an
option in the nzbperl.rc file to run a "post nzb" command. Write a
script to rename the file or delete it or play a sound or whatever and
have this script run as the post nzb command.
My nzbperl.rc has this line in it:

postnzb=/home/vetto/scripts/postnzbperl

Then the postnzbperl "script" referred to above is this:

cd /media/shared/nntp/queue
mv "$NZBP_NZBFILE" "/media/shared//nntp/queue/$NZBP_NZBFILE.done"

Got it?

Matvey Teplov

unread,
Oct 19, 2008, 3:49:46 PM10/19/08
to nzb...@googlegroups.com
Hi,

So it basically passes the NZB file as a command line argument, right?

Cheers

Matthew Stewart

unread,
Oct 19, 2008, 7:44:54 PM10/19/08
to nzb...@googlegroups.com
Matvey Teplov wrote:
> Hi,
>
> So it basically passes the NZB file as a command line argument, right?
>
> Cheers
>
> On Sat, Oct 18, 2008 at 9:28 PM, Matthew Stewart
> <ninjala...@gmail.com <mailto:ninjala...@gmail.com>> wrote:
>
>
> Matvey Teplov wrote:
> > Hoi,
> >
> > How are you are finding out the NZB it just finished? Yourself?
> >
> > Cheers
> >
> > On Sat, Oct 18, 2008 at 4:08 AM, Matthew Stewart
> > <ninjala...@gmail.com <mailto:ninjala...@gmail.com>
> <mailto:ninjala...@gmail.com

> <mailto:ninjala...@gmail.com>>> wrote:
> >
> >
> > Blade1024 wrote:
> > > Hi,
> > >
> > > Who knows how to make nzbperl to remove the nzb file from
> the queue
> > > directory as soon as it finishes downloading it?
> > >
> > > Cheers
> > > >
> > >
> > >
> > I dont delete them automatically, just in case I need to
> reuse the
> > nzb.
> > Instead I use the postnzb part of the config to run a script
> to append
> > ".done" onto the end of the filename.
> >
> > Matt
> >
> >
> >
> >
> > >
> No, nzbperl does it. When the current nzb is finished, there is an
> option in the nzbperl.rc file to run a "post nzb" command. Write a
> script to rename the file or delete it or play a sound or whatever and
> have this script run as the post nzb command.
> My nzbperl.rc has this line in it:
>
> postnzb=/home/vetto/scripts/postnzbperl
>
> Then the postnzbperl "script" referred to above is this:
>
> cd /media/shared/nntp/queue
> mv "$NZBP_NZBFILE" "/media/shared//nntp/queue/$NZBP_NZBFILE.done"
>
> Got it?
>
>
>
>
> >
right.

Matvey Teplov

unread,
Oct 20, 2008, 4:25:52 AM10/20/08
to nzb...@googlegroups.com
Cool! Thanks a lot!
Reply all
Reply to author
Forward
0 new messages