I am having trouble ftping to a host in UNIX. I have done it before, but
I've been using Fetch recently so I have forgoten. I type 'user' and
'pass' but it still will not work. Anyone help.
Bye.
Bye.
Instead of "user" and "pass", try typing "anonymous" and your email address.
--
"I'll spend my whole paycheck on some old wreck
And brother, I could name you a few..."
The easiest way to work with a line-based FTP is as illustratedQuote:> I am having trouble ftping to a host in UNIX. I have done it before, but
> I've been using Fetch recently so I have forgotten. I type 'user' and
> 'pass' but it still will not work. Anyone help.
% _ftp ftp.netcom.com_
Connected to server.netcom.com.
220 server FTP server (Version wu-2.4(2) Tue Jul 5 16:00:01 PDT 1994) ready.
Name (ftp.netcom.com:taylor):
Here most people will tell you to type 'anonymous', but almost
all sites I've tried also accept 'ftp', and it's shorter, so:
Name (ftp.netcom.com:taylor): _ftp_
331 Guest login ok, send your complete e-mail address as password.
Password:
At this point you could type in your entire address, but it
turns out that there's a secret shortcut: simply type your
in your hostname from the connection info.
230-
230- Welcome to NETCOM On-line Communications Services, Inc.
230- (( lots of other stuff omitted for space reasons ))
230 Guest login ok, access restrictions apply.
ftp> _cd /pub/Guides_
This moves me to the directory I seek, then I can use "DIR" to
see what's therein:
250 CWD command successful.
ftp> _dir_
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 1052
-rw-r--r-- 1 1399 50 67252 Aug 15 17:06 Internet.Mall
-rw-r--r-- 1 1399 50 32542 Aug 15 17:06 Internet.Mall.Z
226 Transfer complete.
534 bytes received in 0.14 seconds (3.7 Kbytes/s)
ftp>
Now it's a matter of using the 'get' command to get a file...
ftp> _get Internet.Mall_
200 PORT command successful.
150 Opening ASCII mode data connection for Internet.Mall (67252 bytes).
226 Transfer complete.
local: Internet.Mall remote: Internet.Mall
68606 bytes received in 0.61 seconds (1.1e+02 Kbytes/s)
ftp>
And that's it. A simple 'quit' and we're done!
ftp> _quit_
221 Goodbye.
Hope this helps!
-- Dave Taylor
Instant expert: buy my book "Teach Yourself Unix In A Week" - at a discount!
send me mail with the subject "send tyu" for all the details
The ftp software that I have allows me to:Quote:>How do you 'more' a README file directly to the screen without
>geting it first and reading the local disk file?
get remote_filename |more
If your ftp does not allow this redirection of stdout this way,
you can at least send it to your terminal:
get remote_filename /dev/tty
--
- sgh We don't play golf to feel bad... We play bad golf to feel good!
- Leslie Nielson "Bad Golf Made Easier"
AT&T Bell Laboratories - GCBS, Columbus, OH, USA
>The ftp software that I have allows me to:
> get remote_filename |more
What I used to do, before I found NCFTP, was this:Quote:>If your ftp does not allow this redirection of stdout this way,
>you can at least send it to your terminal:
> get remote_filename /dev/tty
get remote_filename -
That put the file to the screen, but without a 'more' option...
Hope this helps
Chris
Don
--
"The human race is a remarkable creature, one with great potential, and I
hope that Star Trek has helped to show us what we can be if we believe
in ourself and our abilities." -Gene Roddenberry (1921-1991)
A common question, actually. The easiest way is to use:Quote:> How do you 'more' a README file directly to the screen without
> getting it first and reading the local disk file?
get README |more
(note the spaces here: one before the '|' but none immediately following).
Some versions of FTP don't support that, in which case you can also
try the simpler:
get README /dev/tty
which will spill the text onto your screen.
--
-- Dave Taylor
Instant expert: buy my book "Teach Yourself Unix In A Week" - at a discount!
send me mail with the subject "send tyu" for all the details
There is a hack to allow spaces in the redirection. Use "...".Quote:>> How do you 'more' a README file directly to the screen without
>> getting it first and reading the local disk file?
>A common question, actually. The easiest way is to use:
> get README |more
>(note the spaces here: one before the '|' but none immediately following).
1. A simple question deserving a simple answer
: What does Unix (Specifically Linux) look like?
A bunch of ones and zeros ;-)
: Is it like Dos? Windows?
No, thank God.
: Something else?
Yes.
There's a simple answer...
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
2. Compiling Apache 0.8.13 under NEXTSTEP
3. a simple sed question ( there all simple :> )
4. New to linux
5. Simple question from simple user
6. PCI Configuration access with Linux ?
7. simple question about simple code
8. Dropping packets and shutting off logging on certain ports...
9. Simple question for us simple minded.
10. Simple question - simple answer?
11. simple date problem, simple solution?
12. Simple sh script, simple error?
13. SUMMARY: simple shell for a simple man