Function
Transfers a file to the host by using ADC.
Syntax
adc --host <host_ip>:<port> --sync <source_dir> <dest_dir>
Options
Table 10-2 Command-line optionsOption
|
Description
|
Required or Not
|
--host
|
- host_ip: specifies the IP address of the host.
- port: specifies the port number. The default value is 22118.
|
Yes
|
--sync
|
- source_dir: specifies the source file directory, including the file name. The user to run the adc command must have read and write permissions on the specified directory.
- dest_dir: specifies the host directory for storing destination files, excluding the file name. For example, ~/ide_daemon or ~/ide_daemon/ indicates that the destination files are stored in the ide_daemon directory. dest_dir must be specified. Otherwise, the command fails to be executed. The file storage path must be one of the following paths and their subdirectories. If none of the following directories exist, create one.
- ~/ide_daemon
- ~/HIAI_PROJECTS
- ~/HIAI_DATANDMODELSET
- ~/hdcd
NOTE: In the command, ~ indicates the path specified by WORK_PATH and cannot be changed. The default value is the home directory of the user who runs the ada process. For details about WORK_PATH, see What Is the ide_daemon.cfg File?.
|
Yes
|
Example
- Prepare the environment by referring to Environment Preparation.
- Log in to the server installed with Toolkit as the running user.
- Run the following command to transfer the A.java file to the specified directory on the host:
adc --host xx.xx.xx.xx:22118 --sync /tmp/A.java "~/ide_daemon"
- Replace xx.xx.xx.xx with the actual IP address of the host.
- Replace /tmp/A.java with a file that can be accessed by the user to run the adc command.