/
Remote Execute Command

Remote Execute Command

Purpose

Execute a specified script on a target host.

Note that the -privateKey parameter is the name of a private key file accessible your mettleci remote execute command. If used as part of a CI/CD pipeline then the build agent process running the command will need access to the specified private key file.

Syntax

See the examples below.

Examples

$> mettleci remote execute \ -host my-engine.my-org.com \ -username myusername \ -password mypassword \ -script "config/deploy.sh" MettleCI Command Line (build 128) (C) 2018-2022 Data Migrators Pty Ltd Connecting to my-engine.my-org.com on port 22 Status code = 0 exit code = 0 $>

See Also



Related content

Remote Upload Command
Remote Upload Command
More like this
MettleCI Command Line Reference
MettleCI Command Line Reference
Read with this
Remote Download Command
Remote Download Command
More like this
Protecting Sensitive Information used in Jenkins Pipelines
Protecting Sensitive Information used in Jenkins Pipelines
Read with this
Deploying DataStage Binaries
Deploying DataStage Binaries
Read with this
Repeatable DataStage Project Deployments
Repeatable DataStage Project Deployments
Read with this

© 2015-2024 Data Migrators Pty Ltd.