Ah, ok.

On Fri, 13 Feb 2004, Glenn Maynard wrote:

> On Fri, Feb 13, 2004 at 01:41:37PM -0500, Justin Piszcz wrote:
> > lftp [EMAIL PROTECTED]:/pub> jobs -v -v -v
> > [0] queue (ftp://test:[EMAIL PROTECTED])
> >         ftp://test:[EMAIL PROTECTED]/%2Fpub
> >         Now executing: [1] mirror -c test1
> >         Commands queued:
> >          1. mirror -c test2
> >          2. mirror -c test3
> >          3. mirror -c test4
> >
> > lftp [EMAIL PROTECTED]:/pub> queue -n 0 -d 3
> > queue: -n: Number expected. Try `help queue' for more information.
> > lftp [EMAIL PROTECTED]:/pub> queue -n 1 -d 3
> > Deleted job: mirror -c test4
> >
> > The queue says: [0] queue (representing queue 0), however it is really
> > queue1 as far as the queue function is concerned.
>
> -n is only used when inserting items into the queue; it means "insert
> the new command before this queued command".  For example,
>
> lftp :~> que sleep 100
> lftp :~> que sleep 200
> lftp :~> que sleep 300
> lftp :~> jobs
> [0] queue ()
>         Now executing: [1] sleep 100
>         Commands queued:
>          1. sleep 200
>          2. sleep 300
>  [1] sleep 100
> lftp :~> que -n 2 sleep 5000
> lftp :~> jobs -v
> [0] queue ()
>         Now executing: [1] sleep 100
>         Commands queued:
>          1. sleep 200
>          2. sleep 5000
>          3. sleep 300
>  [1] sleep 100
> lftp :~>
>
> It doesn't make sense to say "-n 0", since there is no "0" in the
> "commands queued" list.  -n has no relevance to -d.
>
> "[0] queue" means it's job 0, not queue 0; it doesn't relate to -n or -d.
>
> --
> Glenn Maynard
>

Reply via email to