TotalNET Advanced Server 5.2 Reference Manual

maccp

This command has the same behavior as the tncp command. It exists for backward compatibility only and may not appear in the next release of TAS. To copy files and directories, use the tncp command.

Location

TNHOME/usr/bin

Usage

maccp [-C] [-i] [-p] [-V] [-u] sourcefile targetfile
maccp [-C] [-i] [-p] [-V] [-u] sourcedir targetdir
maccp [-C] [-i] [-p] [-V] [-u] sourcefile targetdir

Options

-C

Display the program copyright message and execute the command. 

-i

Prompt for confirmation before copying any files. 

-p

Preserve file modification time stamps and permission modes. 

-V

Display the program version number and execute the command. 

-u

Display the program usage message only. 

sourcefile

Specify the file from which to copy information. 

sourcedir

Specify the directory from which to copy information. 

targetfile

Specify the file to receive the copied information. 

targetdir

Specify the directory receive the copied information. 

Note

The information from source files and directories overwrites the target files and directories.

Examples

  1. Use the following command to copy the file textfile to datafile in the current directory:


    maccp textfile datafile
  2. Use the following command to copy the directory textfiles in the home directory to datafiles in the /home/macapps directory:


    maccp ~/textfiles /home/macapps/datafiles
  3. Use the following command to copy the file textfile in the current directory and the contents of the directory datafiles in your home directory to the /usr/mac directory, and to prompt for confirmation of overwrites and preserve file modification time stamps and permission modes:


    maccp -ip textfile ~/datafiles /usr/mac