Fetching a File from Host
Function
Fetches a file from the host by using ADC.
Syntax
adc --host <host_ip>:<port> --get <dest_dir> <source_dir>
Options
Option |
Description |
Required or Not |
---|---|---|
--host |
|
Yes |
--get |
|
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 fetch the B.java file from the host and save it as A.java:
adc --host xx.xx.xx.xx:22118 --get /tmp/A.java "~/ide_daemon/B.java"
- Replace xx.xx.xx.xx with the actual IP address of the host.
- Replace /tmp with the directory that can be accessed by the user to run the adc command.
- Replace ~/ide_daemon/B.java with a file that can be accessed by the user who starts the ada process.