Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

This is the first in a series of articles describing how to get started with using the JADE Client via its Command Line Interface and configuring simple file management tasks.

...

  1. Getting Started and Downloading files
  2. Simple File Selection
  3. More Advanced File Selection
  4. File Transfer

  5. Checking files for completeness
  6. Public / Private Key Authentication

...

JADE Command Line Interface

...

Read more ...

JADE API

...

Read more ...

JADE JITL Jobs

...

Read more ...

Requirements

The JADE Client should be installed

About these examples

  • This article describes operation of the JADE Client from the command line, e.g. by using a batch script. The other methods of operating the Client are:
  • The examples described in this article have been written for use on a Windows computer but can easily be adapted for Unix environments. Settings files for Windows and Unix systems are available for download via the link in the next section.
  • The examples presented on this page use public FTP and SFTP servers that we have configured for this purpose on our web site.
    • Both servers have the same address:
    • A user demo can log on with password demo and download demonstration files. They cannot upload or delete files.
  • Comments in JADE settings profiles are added using double semi-colons (";;").

Setting up the examples:

  • For Windows users the location for the jade.cmd file is:
    • C:\Program Files\sos-berlin.com\jade\client\bin
    • or the location that was specified when installing JADE
  • for Unix users the location for the jade.sh file is:

Note that comments in the JADE settings profiles are added using double semi-colons (";;").

Running the examples:

  • Either open the command line interface in the location where you have installed the jade.cmd or jade.sh files or use suitable path name prefixes.
  • The command line parameterization is identical for both the Windows and the Unix command line.
  • Run the examples by entering the following in the command line, e.g. for the first of the examples listed below:
Code Block
languagebash
titleWindows
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settings.ini" -profile="ftp_server_2_local"
Code Block
languagebash
titleUnix
./jade.sh -settings="${HOME}/jade_demo/jade_settings.ini" -profile="ftp_server_2_local"

All other examples in this series of articles list the profile settings and command line call for Windows environments. Unix users will find suitable profile settings in the Unix version of the jade_settings.ini file which was linked above and will be able to adapt the Windows command line calls in the manner shown above.For setting-up and running the examples see Using the tutorials with the JADE Client Command Line Interface

Simple JADE file transfer operations - download by FTP and SFTP

Transferring the contents of a folder by FTP

In this example the contents of a folder on a remote host are downloaded from our demonstration FTP server and saved on your local file system.

Example

The following profile from your settings file will be used to run the example on your computer:

...

Code Block
languagebash
titleWindows
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settings.ini" -profile="ftp_server_2_local"

Behavior

JADE will log onto the remote server and download all the files it finds in the source_dir folder before stopping.

...

Note also that the transfer mode JADE uses for FTP transfer can be specified using the transfer_mode parameter (not used in the example). This can be either ascii or binary (the default setting).

Transferring the contents of a folder by SFTP with password authentication

This example uses the second profile in our examples settings file, sftp_server_2_local_pass, which is quite similar to the ftp_server_2_local profile used in the previous example.

As the new profile name suggests, the SFTP protocol is used in this profile and authentication is by user/password. Key pair authentication is described later in this series of articles.

Example

The profile is included in the jade_settings_windows.ini file as follows:

...

Code Block
languagebash
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settings.ini" -profile="sftp_server_2_local_pass"

Behavior

As with the FTP transfer profile, JADE will log onto the remote server and download all the files in the source_dir folder before stopping.