Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a Workgroup
Adding PC/NT Systems into the Workgroup
Chapter 4 429
After successfully entering the HP-UX account information you will be
logged in to your HP-UX system and placed in the directory designated
as the
ftp-root
directory.
Using the ftp client’s cd command, remote users (logged in anonymously)
can access:
• the
ftp-root
directory
• any of the subdirectories of the
ftp-root
directory
On the PC - Retrieving a file from the HP-UX System
Once you have made a connection and logged in to your HP-UX system
from your PC (See “Establishing an ftp Connection from a PC to HP-UX”
on page 425) you are ready to retrieve a file from the HP-UX system.
Step 1. Locate the file you want to retrieve from your HP-UX system. You can
use ftp’s cd and ls commands pretty much as you would in an HP-UX
shell (sh, ksh, csh, etc.). If it is not in the home directory for the HP-UX
account that you logged in to, use ftp’s change directory command (“cd”)
to move to the directory on the HP-UX system where the file exists.
Step 2. Determine whether the file you are trying to transfer is an ASCII file or a
binary (non-ASCII) file and set the transfer mode accordingly:
a. For ASCII (plain text) files, set the transfer mode using ftp’s ascii
command:
ftp> ascii
This enables character conversions such as end-of-line carriage
return stripping to occur (See “ASCII End-of-Line Problems” on
page 132).
b. For binary files (graphics files, sound files, database files, etc.), set the
transfer mode using ftp’s binary command:
ftp> binary
This causes ftp to use an eight bit wide (byte) transfer rather than a
seven bit wide (character) transfer. This is very important as most
non-ASCII formats are dependent on that eighth bit of each byte!
Your binary files will be corrupted if you transfer them using ascii
mode.