Versions Compared

Key

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

Table of Contents

Introduction

This is the third in a series of articles describing how to get started with using the the JADE Client via its Command Line Interface.

...

  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

For setting-up and running the examples see Using the tutorials with the JADE Client Command Line Interface

File Selection - More Complex Examples

Polling a source directory for a minimum number of files

JADE can poll a source directory at regular intervals until it finds a file name match or until a specified length of time has elapsed. If it finds a file name match with one or more files it will then transfer the matching file(s) and then stop polling.

...

JADE will transfer all those files it has found at the end of the polling interval if the minimum number of matches has not been reached.

Example

In the example profile listed below the function of the four poll_* parameters should be self-explanatory but the following should be noted:

...

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

Example behavior with poll_minfiles = 3  

  • JADE will transfer all the files found at the first polling - in this case the 5 test_*.txt files - as more than the minimum number of files has been found. Polling will then be stopped.
  • If no files were to be found then the JADE engine would throw an error as long as force_file = true has not been set.

Example behavior with poll_minfiles = 6

Change the poll_minfiles parameter in your settings file to 6, save the settings file and rerun the example.

...