exec
Bash
Command
protected open fun execBashCommand(command: String, onCommandExecuted: ShellCommandsExecutor.OnCommandExecuted, closeSession: Boolean): String
Method used to execute a bash command
Return
the result of the command
Parameters
command
The bash command to execute
onCommandExecuted
The callback to execute when the command has been executed
closeSession
Whether close the current bash session (like Runtime or SSH if remote host)
Throws
when an exception occurred during the process