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

Transferring a File to the Host by Using IDE Daemon

Function

Transfers a file to the host by using IDE Daemon.

Syntax

IDE-daemon-client --host <host_ip>:<port> --sync <source_dir> <dest_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.

--sync

  • source_dir: specifies the directory of the source file on the IDE Daemon server. The value includes the file name.
  • dest_dir: specifies the directory of the destination file on the host, excluding the file name. For example, the directory of the destination file is ~/ide_daemon or ~/ide_daemon/, both of which indicate that the destination file is stored in the ide_daemon directory. dest_dir must be specified. Otherwise, the command fails to be executed. Files can be stored only in the following directories:
    • ~/ide_daemon
    • ~/HIAI_PROJECTS
    • ~/HIAI_DATANDMODELSET
    • /opt/mini
    • /var/log/hisi_logs
    • /var/dlog

Yes

-

Example

  1. Log in to the server on the host as the HwHiAiUser user.
  2. Run the following command to transfer the A.java file to the specified directory on the host:
    IDE-daemon-client --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.