You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

h1. Variables in JADE parameters

Variables as Parameter argument from Command line

[ftp_server_2_server]
 ssh_auth_method=password 
 source_user=kb
 source_password=*****
 source_ssh_auth_method=password
 source_host=wilma.sos
 source_protocol=sftp
 source_port=22
 
 target_user=test
 target_password=*****
 target_host=8of9.sos
 target_protocol=ftp
 target_port=21
 
 file_spec=^.*\.txt$
 operation=copy 

JADE example of variables as command line argumenrs

JADE can use the transfer profile from jade_settings.ini and some parameters from CLI command line interface.
command line parameters have the priority. If parameter value is provided from CLI , parameter in jade_settings.in will be overwritten.


./jade.sh -settings="jade_settings.ini" -profile="ftp_server_2_server" -local_dir="$\{source_dir\}" -remote_dir="archive_dir"

Variables as Parameter argument in jade_settings.ini or profile


 [globals]
 sftp.port = 22
 ftp.port  = 21

 [ftp_server_2_server]
 file_spec              =^.*\.txt$
 operation              =copy 

 ssh_auth_method        = password 
 source_user            = kb
 source_password        = *****
 source_ssh_auth_method = password
 source_host            = wilma.sos
 source_protocol        = sftp
 source_port            = $\{sftp.port\}
 
 target_user            = test
 target_password        = *****
 target_host            = 8of9.sos
 target_protocol        = ftp
 target_port            = $\{ftp.port\}
 

JADE example of variables in jade_settings.ini file

jade_settings.ini file can be use variables in profile, variables can be defined in the global profile and can be used in any profile in jade_settings.ini file. Globals profile is included automatically in all the profiles.


./jade.sh -settings="jade_settings.ini" -profile="ftp_server_2_server" 

For info about the parameters see the parameter documentation on jadeParameterReference.

  • No labels