Page History
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/sh
$JS7_YADE_BIN \
-settings $JS7_YADE_CONFIG_DIR/yade.xml \
-profile transfer_by_sftp \
-file_path /tmp/some.file.txt |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
%JS7_YADE_BIN% ^
-settings %JS7_YADE_CONFIG_DIR%\yade.xml ^
-profile transfer_by_sftp ^
-file_path C:\tmp\some.file.txt |
Explanation:
- The job script can make use of a number of JS7 - Job Environment Variables that are automatically available. This includes any environment variables prefixed with
JS7
such as:
JS7_YADE_BIN
, which points to the YADE start script that is available:- for Unix from
$JS7_AGENT_HOME/yade/bin/yade.sh
- for Windows from
%JS7_AGENT_HOME%/\yade/\bin/\yade.cmd
- for Unix from
JS7_YADE_DMZ_BIN
, which points to the second YADE start script that is used for transfers with a YADE Jump Host available:- for Unix from
$JS7_AGENT_HOME/yade/bin/yade4dmz.sh
- for Windows from
%JS7_AGENT_HOME%\yade\bin\yade4dmz.cmd
- for Unix from
JS7_YADE_CONFIG_DIR
, which points to the YADE configuration directory that corresponds to the Agent's configuration directory, i.e.JS7_AGENT_CONFIG_DIR
.
- The following arguments are used:
-settings
expects the path to a YADE configuration file (*.xml, *.ini) that specifies the file transfer source, targets and profiles.-profile
expects the name of the profile to be applied from the the YADE configuration file.-file_path
can optionally be used as the path of a file to be transferred if not otherwise specified in the profile.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/sh
# Any environment variables assigned the job are automatically applied if used by the YADE profile
$JS7_YADE_BIN \
-settings $JS7_YADE_CONFIG_DIR/yade.xml \
-profile $YADE_PROFILE \
-java-options "-Xmx32m" \
-log-level debug |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@rem Any environment variables assigned the job are automatically applied if used by the YADE profile
%JS7_YADE_BIN% ^
-settings %JS7_YADE_CONFIG_DIR%\yade.xml ^
-profile %YADE_PROFILE% ^
-java-options "-Xmx32m" ^
-log-level debug |
Explanation:
...
Overview
Content Tools