Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2003 13:20:05 -0500
From:      "fbsd_user" <fbsd_user@a1poweruser.com>
To:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   need example of ftp command
Message-ID:  <MIEPLLIBMLEEABPDBIEGCEGBFBAA.fbsd_user@a1poweruser.com>

next in thread | raw e-mail | index | archive | help
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).

Please help.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGCEGBFBAA.fbsd_user>