<ssh-exec>
Purpose/Function
Executes one or more commands using SSH.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
endpoint |
|
required |
a URI for the endpoint |
execDir |
|
|
cd to this directory before executing the command |
outputFile |
|
|
file to write output stream to |
errorFile |
|
|
file to write error stream to |
appendOut |
|
|
append output stream to file rather than overwriting |
appendErr |
|
|
append error stream to file rather than overwriting |
bufferOut |
|
|
write output stream to internal buffer |
bufferErr |
|
|
write error stream to internal buffer |
logOut |
|
|
send output to logger |
logErr |
|
|
send error to logger |
publishOut |
|
|
publish output stream |
publishErr |
|
|
publish error stream |
Elements
TAG |
TYPE |
COUNT |
DESCRIPTION |
---|---|---|---|
|
|
0:N |
command to execute on remote host |
ReturnValues
DEFAULT NAME |
TYPE |
DESCRIPTION |
---|---|---|
sshOut |
|
the contents of the output buffer (may be |
sshErr |
|
the contents of the error buffer (may be |
NOTES
- To use GSISSH, set the URL of the endpoint to
gsissh://HOST
; the proxy will be obtained from the standard on-disk location. - To use username/password authentication, include these in the endpoint URL (e.g.,
ssh://arossi:43x84Hpq7@HOST
). - If ssh public-key authorization is set up between the endpoints,
ssh://HOST
without username or password will work.
Examples
... <ssh-exec endpoint="ssh://remus.livio.it" execDir="/etruria/home" bufferOut="true"> <command>chmod 744 romulus</command> <command>cat romulus</command> <return-value defaultName="sshOut"/> </ssh-exec> ...