concept SSH command in category gradle
appears as: SSH commds, The SSH commd

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.
The SSH command makes it very simple to achieve such an operation. Instead of running an interactive shell, SSH can run a command on the remote machine and render the output. The following listing shows the custom task SshExec that internally wraps the SSH Ant task.