Re: FTP and command-line multiple downloads

2003-06-11 Thread Mike Heffner

On 06-Jun-2003 Yar Tikhiy wrote:
| 
| Luke Mewburn may be convinced to do that
| in his ftp client.  Technically, the task is as easy as removing a
| single logical subexpression from an "if" statement.
| 

When I proposed the patch to Luke back in February he was hesistant to
implement it. He mentioned that he had already gotten into "trouble" by
not implementing RFC 1738 exactly -- which doesn't include globbing URL's.


Mike

-- 
  Mike Heffner   <[EMAIL PROTECTED]>
 <[EMAIL PROTECTED]>



pgp0.pgp
Description: PGP signature


Re: FTP and command-line multiple downloads

2003-06-10 Thread Kris Kennaway
On Tue, Jun 10, 2003 at 03:55:28PM +0400, Yar Tikhiy wrote:
> On Fri, Jun 06, 2003 at 03:28:02PM -0700, Kris Kennaway wrote:
> > On Fri, Jun 06, 2003 at 05:10:21PM +0400, Yar Tikhiy wrote:
> > 
> > > I must admit that I overlooked this feature in lukemftp.  In fact,
> > > lukemftp can download multiple files specified as a wildcard via ftp.
> > > However, lukemftp accepts wildcards only in the "classic" ftp file
> > > specification, i.e., host:path/file, and not in URLs.
> > > 
> > > Do you think the ability to use command-line wildcards should be
> > > extended to URLs as well?  Luke Mewburn may be convinced to do that
> > > in his ftp client.  Technically, the task is as easy as removing a
> > > single logical subexpression from an "if" statement.
> > 
> > lukem doesn't want to change it..I suppose the difference and
> > workaround should be documented in the manpage.  I'm happy with the
> > workaround.
> 
> As a matter of fact, the feature is documented well in the section
> AUTO-FETCHING FILES of lukem's ftp(1), though no words are said on
> how it differs from the older FreeBSD ftp client, naturally.  We
> can create a customized manpage version that will explicitly describe
> the difference.  Does it sound reasonable?

Sounds good to me!

Kris


pgp0.pgp
Description: PGP signature


Re: FTP and command-line multiple downloads

2003-06-10 Thread Yar Tikhiy
On Fri, Jun 06, 2003 at 03:28:02PM -0700, Kris Kennaway wrote:
> On Fri, Jun 06, 2003 at 05:10:21PM +0400, Yar Tikhiy wrote:
> 
> > I must admit that I overlooked this feature in lukemftp.  In fact,
> > lukemftp can download multiple files specified as a wildcard via ftp.
> > However, lukemftp accepts wildcards only in the "classic" ftp file
> > specification, i.e., host:path/file, and not in URLs.
> > 
> > Do you think the ability to use command-line wildcards should be
> > extended to URLs as well?  Luke Mewburn may be convinced to do that
> > in his ftp client.  Technically, the task is as easy as removing a
> > single logical subexpression from an "if" statement.
> 
> lukem doesn't want to change it..I suppose the difference and
> workaround should be documented in the manpage.  I'm happy with the
> workaround.

As a matter of fact, the feature is documented well in the section
AUTO-FETCHING FILES of lukem's ftp(1), though no words are said on
how it differs from the older FreeBSD ftp client, naturally.  We
can create a customized manpage version that will explicitly describe
the difference.  Does it sound reasonable?

-- 
Yar
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FTP and command-line multiple downloads

2003-06-06 Thread Kris Kennaway
On Fri, Jun 06, 2003 at 05:10:21PM +0400, Yar Tikhiy wrote:

> > As far as I can see, this is a client-side problem of CURRENT's
> > ftp(1).  FreeBSD ftp(1) was completely replaced with "lukemftp,"
> > ftp client from NetBSD, in CURRENT a year ago.  The commit message
> > was promising:
> > 
> > ...Lukemftp supports most of the previous features of FreeBSD
> > ftp, but has been better maintained and includes new features.
> > 
> > Unfortunately, this particular feature doesn't fall into that most;
> > "lukemftp" can't seem to detect a glob pattern on the command line.
> 
> I must admit that I overlooked this feature in lukemftp.  In fact,
> lukemftp can download multiple files specified as a wildcard via ftp.
> However, lukemftp accepts wildcards only in the "classic" ftp file
> specification, i.e., host:path/file, and not in URLs.
> 
> Do you think the ability to use command-line wildcards should be
> extended to URLs as well?  Luke Mewburn may be convinced to do that
> in his ftp client.  Technically, the task is as easy as removing a
> single logical subexpression from an "if" statement.

lukem doesn't want to change it..I suppose the difference and
workaround should be documented in the manpage.  I'm happy with the
workaround.

Kris


pgp0.pgp
Description: PGP signature


Re: FTP and command-line multiple downloads

2003-06-06 Thread Yar Tikhiy
On Sat, Feb 15, 2003 at 05:46:37PM +0300, Yar Tikhiy wrote:
> On Fri, Feb 14, 2003 at 03:37:49PM -0800, Kris Kennaway wrote:
> > On Fri, Feb 14, 2003 at 03:34:06PM -0800, Kris Kennaway wrote:
> > > Since upgrading bento to running 5.0, it appears that I can no longer
> > > download multiple files from a FTP server by specifying a glob pattern
> > > on the command-line:
> > > 
> > > e.g.
> > > 
> > > /usr/bin/ftp -4a 
> > > ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/alpha/5-LATEST/base/base.\?\?
> > 
> > This appears to work (as it used to) under 4.x.
> 
> As far as I can see, this is a client-side problem of CURRENT's
> ftp(1).  FreeBSD ftp(1) was completely replaced with "lukemftp,"
> ftp client from NetBSD, in CURRENT a year ago.  The commit message
> was promising:
> 
>   ...Lukemftp supports most of the previous features of FreeBSD
>   ftp, but has been better maintained and includes new features.
> 
> Unfortunately, this particular feature doesn't fall into that most;
> "lukemftp" can't seem to detect a glob pattern on the command line.

I must admit that I overlooked this feature in lukemftp.  In fact,
lukemftp can download multiple files specified as a wildcard via ftp.
However, lukemftp accepts wildcards only in the "classic" ftp file
specification, i.e., host:path/file, and not in URLs.

Do you think the ability to use command-line wildcards should be
extended to URLs as well?  Luke Mewburn may be convinced to do that
in his ftp client.  Technically, the task is as easy as removing a
single logical subexpression from an "if" statement.

-- 
Yar
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FTP and command-line multiple downloads

2003-02-15 Thread Yar Tikhiy
On Fri, Feb 14, 2003 at 03:37:49PM -0800, Kris Kennaway wrote:
> On Fri, Feb 14, 2003 at 03:34:06PM -0800, Kris Kennaway wrote:
> > Since upgrading bento to running 5.0, it appears that I can no longer
> > download multiple files from a FTP server by specifying a glob pattern
> > on the command-line:
> > 
> > e.g.
> > 
> > /usr/bin/ftp -4a 
>ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/alpha/5-LATEST/base/base.\?\?
> 
> This appears to work (as it used to) under 4.x.

As far as I can see, this is a client-side problem of CURRENT's
ftp(1).  FreeBSD ftp(1) was completely replaced with "lukemftp,"
ftp client from NetBSD, in CURRENT a year ago.  The commit message
was promising:

...Lukemftp supports most of the previous features of FreeBSD
ftp, but has been better maintained and includes new features.

Unfortunately, this particular feature doesn't fall into that most;
"lukemftp" can't seem to detect a glob pattern on the command line.

It is said that lukem@netbsd is very responsive, so the matter depends
on finding somebody to make a patch and sumbit it to him, and waiting
until the patch is merged back to our src/contrib/ along with other
"lukemftp" updates.

If the advocates of "lukemftp" don't do the job, I think I will do it
by myself since I've already volunteered to look after ftpd(8).

-- 
Yar

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: FTP and command-line multiple downloads

2003-02-14 Thread SNAPSHOTs Service Administrator

(put my 'snapshots.jp.FreeBSD.org admin' hat on)

kris> Since upgrading bento to running 5.0, it appears that I can no longer
kris> download multiple files from a FTP server by specifying a glob pattern
kris> on the command-line:

Client says (from the server side logfile):

Feb 15 08:28:31 u ftpd[85430]: command: SIZE base.??
Feb 15 08:28:31 u ftpd[85430]: <--- 550
Feb 15 08:28:31 u ftpd[85430]: base.??: not a plain file.
Feb 15 08:28:31 u ftpd[85430]: command: EPSV
Feb 15 08:28:31 u ftpd[85430]: <--- 229
Feb 15 08:28:31 u ftpd[85430]: Entering Extended Passive Mode (|||1679|)
Feb 15 08:28:32 u ftpd[85430]: command: RETR base.??
Feb 15 08:28:32 u ftpd[85430]: <--- 550
Feb 15 08:28:32 u ftpd[85430]: base.??: No such file or directory.

kris> This used to work under 4.x..

Also client says:

Feb 15 08:42:35 u ftpd[85572]: command: TYPE A
Feb 15 08:42:35 u ftpd[85572]: <--- 200
Feb 15 08:42:35 u ftpd[85572]: Type set to A.
Feb 15 08:42:35 u ftpd[85572]: command: EPSV
Feb 15 08:42:35 u ftpd[85572]: <--- 229
Feb 15 08:42:35 u ftpd[85572]: Entering Extended Passive Mode (|||1697|)
Feb 15 08:42:35 u ftpd[85572]: command: NLST base.??
Feb 15 08:42:36 u ftpd[85572]: <--- 150
Feb 15 08:42:36 u ftpd[85572]: Opening ASCII mode data connection for 'file list'.
Feb 15 08:42:36 u ftpd[85572]: <--- 226
Feb 15 08:42:36 u ftpd[85572]: Transfer complete.
Feb 15 08:42:36 u ftpd[85572]: command: TYPE I
Feb 15 08:42:36 u ftpd[85572]: <--- 200
Feb 15 08:42:36 u ftpd[85572]: Type set to I.
Feb 15 08:42:36 u ftpd[85572]: command: SIZE base.aa
Feb 15 08:42:36 u ftpd[85572]: <--- 213
Feb 15 08:42:36 u ftpd[85572]: 240640
Feb 15 08:42:36 u ftpd[85572]: command: EPSV
Feb 15 08:42:36 u ftpd[85572]: <--- 229
Feb 15 08:42:36 u ftpd[85572]: Entering Extended Passive Mode (|||1698|)
Feb 15 08:42:36 u ftpd[85572]: command: RETR base.aa
Feb 15 08:42:36 u ftpd[85572]: <--- 150
Feb 15 08:42:36 u ftpd[85572]: Opening BINARY mode data connection for
'base.aa' (240640 bytes).

4.x client issues 'NLST' but 5.x client not; that's the problem.  I'm
also sure that nothing has changed on my side (actually I'm sleeping
at that time :-).

-- -
Makoto `MAR' Matsushita

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: FTP and command-line multiple downloads

2003-02-14 Thread Kris Kennaway
On Fri, Feb 14, 2003 at 03:34:06PM -0800, Kris Kennaway wrote:
> Since upgrading bento to running 5.0, it appears that I can no longer
> download multiple files from a FTP server by specifying a glob pattern
> on the command-line:
> 
> e.g.
> 
> /usr/bin/ftp -4a 
>ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/alpha/5-LATEST/base/base.\?\?

This appears to work (as it used to) under 4.x.

Kris



msg52359/pgp0.pgp
Description: PGP signature


FTP and command-line multiple downloads

2003-02-14 Thread Kris Kennaway
Since upgrading bento to running 5.0, it appears that I can no longer
download multiple files from a FTP server by specifying a glob pattern
on the command-line:

e.g.

/usr/bin/ftp -4a 
ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/alpha/5-LATEST/base/base.\?\?
[...]
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
local: base.?? remote: base.??
229 Entering Extended Passive Mode (|||1683|)
550 base.??: No such file or directory.
221-
Data traffic for this session was 0 bytes in 0 files.
Total traffic for this session was 2578 bytes in 0 transfers.
221 Thank you for using the FTP service on snapshots.jp.FreeBSD.org.

This used to work under 4.x..I'm pretty sure nothing else has changed
on my end.  Does anyone know what's going on here?

Kris



msg52357/pgp0.pgp
Description: PGP signature