l

lifcp(1)

lifcp(1)

The default copying modes when copying from LIF to HP-UX are summarized in the following table:

File Type Default Copying Mode

ASCII ASCII

BINARY BINARY

BIN RAW

other RAW

When copying from HP-UX to LIF, the default copying mode is ASCII and an ASCII ®le is created.

When copying from LIF to LIF, if no options are speci®ed, then all the LIF directory ®elds and ®le contents are duplicated from source to destination.

A LIF ®le name is recognized by the embedded colon (:) delimiter (see lif(4) for LIF ®le naming conven- tions). A LIF directory is recognized by a trailing colon. If an HP-UX ®le name containing a colon is used, the colon must be escaped with two backslash characters (\\) (the shell removes one of them).

The ®le name - (dash) is interpreted to mean standard input or standard output, depending on its position in the argument list. This is particularly useful if the data requires nonstandard translation. When copying from standard input, if no other name can be found, the name "STDIN" is used.

LIF ®le naming conventions are known only to the LIF utilities. Since ®le name expansion is done by the shell, this mechanism cannot be used for expanding LIF ®le names.

Do not mount the special ®le while using lifcp.

DIAGNOSTICS

lifcp returns exit code 0 if the ®le is copied successfully. Otherwise it prints a diagnostic and returns nonzero.

EXAMPLES

Copy HP-UX ®le abc to LIF ®le CDE on LIF volume lifvol which is actually an HP-UX ®le initialized to be a LIF volume:

lifcp abc lifvol:CDE

Copy all the HP-UX ®les in the current directory to the LIF volume lifvol which is present in the parent directory. File names are translated to appropriate LIF ®le names.

lifcp -t ../lifvol:

Copy all the HP-UX object ®les in the current directory to the LIF volume lifvol. Copying mode is RAW and LIF ®le types are set to -5555.

lifcp -r -T -5555 -t .o lifvol:

Copy all the object ®les in the current directory to the LIF volume lifvol. Copying mode is BINARY and LIF BINARY ®les are created.

lifcp -r -T 0xffffe961 -i 0x20200080 bdat lifvol:BDAT

Copy a BDAT ®le, without a password, from a BASIC WorkStation to an HP-UX LIF volume lifvol. Note that -icontrols protection and record size attributes. The ®le type for a BDAT ®le is -5791 (or 0xffffe961) and its record size is 256 bytes per record.

lifcp -b .o lifvol:

Copy all ®les in the current directory to the LIF volume lifvol in the root directory. Copying mode is RAW and LIF ®le types are set to BIN.

lifcp -r -t /lifvol:

Copy ®le abc: to LIF ®le CDE in lifvol.

lifcp abc\\: lifvol:CDE

Copy ®les abc and def to LIF ®les ABC and DEF within lifvol.

lifcp -t abc def lifvol:

Copy LIF ®le ABC within lifvol to ®le ABC within current directory.

Section 1444

− 2 −

HP-UX Release 11i: December 2000