Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dos(4)

cp(1)

DOSCP(1)

Series 300 Only

NAME

doscp − copy to or from DOS files

SYNOPSIS

doscp file1 file2
doscp file1 [file2...] directory

DESCRIPTION

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

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

The DOS file naming conventions are known only by the DOS utilities.  Since file name expansion is done by the shell, this mechanism cannot be used for expansion of DOS file names. 

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

Important

Do not mount media before using doscp.

EXAMPLES

doscp abc /dev/hd.c:x/y/z
Copy the HP-UX file abc to the DOS file x/y/z through the HP-UX device special file /dev/hd.c

doscp /dev/fd.0:/backup/log logcopy
Copy DOS file /backup/log through the HP-UX device special file /dev/fd.0 to HP-UX file logcopy located in the current directory. 

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

SEE ALSO

dos(4), cp(1). 

DIAGNOSTICS

Doscp returns 0 if the file is copied successfully.  Otherwise, it prints a diagnostic and returns with a non-zero value. 

Hewlett-Packard Company  —  May 11, 2021

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