Re: need example of ftp command

2003-12-21 Thread Trevor Cornpropst
On Sunday 21 December 2003 01:20 pm, fbsd_user wrote:
> Need example of ftp command to login anonymous and download selected
> file'
>
> I can not get this to work
>
> #! /bin/sh
> cd /usr/packages/
>
> path="pub/FreeBSD/ports/i386/packages-4.9-release/mail"
>
> ftp -a 'ftp://ftp2.FreeBSD.org/$path/qpopper-4.0.5_1'
>
>
> using native interactive ftp, I can drill down to this
> directory and get the file, so I know it's there and that's
> the correct name, but I can not get the ftp
> command in my script to work. Get error (not found or no access).

Two things. The file you wish to retrieve is named qpopper-4.0.5_1.tgz, you 
left the file extension off the name. Second, you used single quotes in the 
ftp command line. This prevents the shell interpreter from translating $path. 
Use double quotes and fix the file name and this will work.

Trevor Cornpropst

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


Re: need example of ftp command

2003-12-21 Thread Sean Ellis
On Sun, Dec 21, 2003 at 01:20:05PM -0500, fbsd_user wrote:
 
> ftp -a 'ftp://ftp2.FreeBSD.org/$path/qpopper-4.0.5_1'
> 
> using native interactive ftp, I can drill down to this
> directory and get the file, so I know it's there and that's
> the correct nam

ftp> ls qpop*
150 Opening ASCII mode data connection for '/bin/ls'.
lrwxrwxrwx  1 65532  65532  25 Sep 29 05:19 qpopper-2.53_4.tgz -> 
../All/qpopper-2.53_4.tgz
lrwxrwxrwx  1 65532  65532  26 Sep 29 05:19 qpopper-4.0.5_1.tgz -> 
../All/qpopper-4.0.5_1.tgz
226 Transfer complete.

--
Sean

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