Help Center/ Atlas 300 Application (Model 3000)/ IDE-daemon-client Command Reference/ Obtaining a File from the Host by Using IDE Daemon
Updated on 2022-03-13 GMT+08:00

Obtaining a File from the Host by Using IDE Daemon

Function

Obtains a file from the host by using IDE Daemon.

Syntax

IDE-daemon-client --host <host_ip>:<port> --get <dest_dir> <source_dir>

Parameter

Table 1 Parameter description

Parameter

Description

Mandatory or Not

Default Value

--host

  • host_ip: specifies the IP address of the host.
  • port: specifies the port number.

Yes

The default value of port is 22118.

--get

  • source_dir: specifies the directory of the source file on the host, including the file name. Files can be stored only in the following directories:
    • ~/ide_daemon
    • ~/HIAI_PROJECTS
    • ~/HIAI_DATANDMODELSET
    • /opt/mini
    • /var/log/hisi_logs
    • /var/dlog
  • dest_dir: specifies destination directory used to store the file. The value includes the file name. dest_dir must be specified. Otherwise, the command fails to be executed.

Yes

-

Example

  1. Log in to the server on the host as the HwHiAiUser user.
  2. Run the following command to obtain the B.java file from the host and save it as A.java by using IDE Daemon:
    IDE-daemon-client --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.