Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 10:12:51 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Steve Suhre <steve@Antero.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FTP command line syntax
Message-ID:  <20040928151251.GG90839@dan.emsphone.com>
In-Reply-To: <6.0.3.0.2.20040928085447.04434ec0@nano.net>
References:  <6.0.3.0.2.20040928085447.04434ec0@nano.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 28), Steve Suhre said:
> I need to set up a cron job that will fetch a file using ftp and a
> password. I've tried several versions of the commands as described in
> the man page and the Auto-Fetch section but I'm getting an error that
> makes me think I'm missing something...
> 
> If I use the suggested syntax:
> 
> ftp ftp://user:password@host/path
> 
> I get:                Can't locate or login to host `user'

Works for me:

  $ ftp ftp://doesnt:exist@ftp.netscape.com/path    
  Connected to ftp.gftp.netscape.com.
  220-35
  220 ftpnscp.newaol.com FTP server (SunOS 5.8) ready.
  331 Password required for doesnt.
  530 Login incorrect.
  ftp: Login failed.
  ftp: Can't connect or login to host `ftp.netscape.com'
  221 Goodbye.
  $ 

What version of FreeBSD are you running?

-- 
	Dan Nelson
	dnelson@allantgroup.com



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