Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ doscp(1) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cp(1)

dos2ux(1)

doschmod(1)

dosdf(1)

dosls(1)

dosmkdir(1)

dosrm(1)

dosif(4)

doscp(1)

NAME

doscp − copy to or from DOS files

SYNOPSIS

doscp [-fvu] file1 file2
doscp [-fvu] file1 [file2 ...] directory

DESCRIPTION

doscp is the DOS counterpart of cp (see cp(1)). doscp copies a DOS file to a DOS or HP-UX file, an HP-UX file to an HP-UX or DOS file, or HP-UX or DOS files to an HP-UX or DOS directory.  The last name in the argument list is the destination file or directory. 

A DOS file name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS file naming conventions. 

The file name - (dash) is interpreted to mean standard input or standard output depending upon its position in the argument list. 

Options

doscp recognizes the following options:

-f Unconditionally write over an existing file.  In the absence of this option, doscp asks permission to overwrite an existing HP-UX file. 

-v Verbose mode.  doscp prints the source name. 

-u Disable argument case conversion.  In the absence of this option, all DOS file names are converted to upper case. 

Note: Shell metacharacters (*, ?, and [ ... ]) can be used when specifying HP-UX file names, but cannot be used when specifying a DOS file name, because file name expansion is done by the shell and the DOS utilities do not recognize metacharacters. 

RETURN VALUE

doscp returns 0 if all files are copied successfully.  Otherwise, it prints a message to standard error and returns with a non-zero value. 

EXAMPLES

Copy the files in the HP-UX directory abc to the DOS volume stored as HP-UX file hard_disk:

doscp abc/* hard_disk:

Copy DOS file /backup/log through the HP-UX special file /dev/rfd9127 to HP-UX file logcopy located in the current directory:

doscp /dev/rfd9127:/backup/log  logcopy

Copy DOS file zulu on the volume stored as HP-UX file bb to standard output:

doscp bb:zulu -

SEE ALSO

cp(1), dos2ux(1), doschmod(1), dosdf(1), dosls(1), dosmkdir(1), dosrm(1), dosif(4). 

Hewlett-Packard Company  —  HP-UX Release 9.10: April 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026