On Thu, 4 Mar 2004, Smitty wrote:
> I have used kbear in the past for ftping files to my webserver.
> All of a sudden, I cannot ftp at all. I have tried kbear and xftp and cannot
> get a connection. How would I use ftp from the command line to transfer
> local files to a remote host?
Here's one way:
$ ftp -n
ftp> open machine
Connected to machine (i.p.add.ress).
220 blah blah blah
Remote system type is UNIX.
Using binary mode to transfer files. <- if that's diffrent or absent,
enter 'bin' after you're logged in
if you're transfefrring binary
files. HTML isn't binary.
ftp> user yourusername
331 User hactar okay, need password.
Password: (yourpassword)
230 blah blah blah
ftp> cd remotedir
ftp> lcd localdir
ftp> put filename
ftp> bye
221 blah blah blah
$
Instead of
$ ftp -n
ftp> open machine
you can do
$ ftp -n machine
It may prompt for a username/password if you haven't defined the default
in ~/.netrc . I always do
bin (binary mode)
has (show #s to indicate file-transfer progress)
ver (turn off verbose mode)
if I'm unsure.
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar ARIES: The look on your face will be priceless when you find that 40lb watermelon in your colon. Trade toothbrushes with an albino dwarf, then give a hickey to Meryl Streep. -- Weird Al, _Your Horoscope for Today_
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:13:09 EDT