P. 1
3181427 Hpux User Guide

3181427 Hpux User Guide

|Views: 42|Likes:
Publicado porbabu_mdp1

More info:

Published by: babu_mdp1 on Dec 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/22/2011

pdf

text

original

Use get to transfer files from a remote system to your local directory.

1.If you are going to transfer binary files, such as graphics or
executable programs, type bin at the ftp> prompt.

2.At the ftp> prompt, type:

ftp> getremote_filelocal_fileEnter

Theremote_file can be the name of a file in the remoteworking
directory
, or arelative orabsolute path from that directory.

If you do not specifylocal_file, the local destination file name will be
the same as the remote source file name.

a. ftp copies the remote file to the local file name.

b.If the remote file is not in the current working directory on the
remote system,remote_file is the absolute path name orrelative
path name
for that file. In that case, ftp copies the file to a file
name with the same path on your local system.

c.If there is no matching path, ftp gives you a message, “No such
file or directory”.

d.If the destination file already exists, ftp overwrites its contents
with the contents of the remote file.

3.During a successful copy, ftp displays messages confirming the copy
and the length of time required.

160

Chapter 6

Communicating over a Network

Transferring Files Remotely with ftp

Example

This example shows user leslie getting the remote file special from the
remote directory /home/ftp/pub and placing it on the local system as
new_info.

You're Reading a Free Preview

Descarga
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->