|
|
New Features of MPE/iX: Using the Hierarchical File System: 300 MPE/iX Computer Systems > Chapter 7 Managing FilesCopying Files |
|
You can use the COPY command to copy any MPE/iX files. If you are granted sufficient access, you can copy files outside your current logon account. You can also copy files to and from directories by using HFS syntax with COPY. Files named using HFS syntax must begin with (.) or (/). Remember that HFS syntax is case sensitive. If you copy a file has an ACD assigned to it, the ACD is copied along with the file. You can change the ACD on the copied file so it has the ACD you want by using the ALTSEC command. Refer to the ALTSEC command in the MPE/iX Commands Reference Manual, Vol. I (32650-90003). If you copy a file that has no ACD into an HFS directory, the file is automatically assigned an ACD. By default, the ACD assigned is RACD:@.@ (read ACD access for all users on the system).
The TO= parameter of the COPY command has always allowed .GROUP to be specified as a shortcut for sourcefile.GROUP. To remain consistent, a leading (.) in the TO= parameter only is not interpreted as an HFS name. Table 7-4 “Resulting Security When Copying Files” summarizes file security changes that occur at the file level when you copy files on MPE/iX. Table 7-4 Resulting Security When Copying Files
To copy a file from an account to a directory:
The file named LETTER.PUB.SYS is copied to xfer in the current working directory. The file xfer will only be recognized in lowercase. If you try to list it using LISTFILE xfer, MPE/iX displays an error (Non-existent file). To list it, you need to specify HFS syntax:
To copy a file from a directory to an account:
The file named xfer (in lowercase) in the current working directory is copied to LETTER.CUB.ACCT (in uppercase) in the current account. To copy a file from a directory to a second directory:
The file file1 in dir0 in the root directory is copied to file2 in dir1 also in the root directory. These files are in directories outside of accounts and groups. |
|