Kaholo plugin to execute commands from shell.
Method: Execute Command
Execute the specified command from shell.
Parameters
- Working Directory (String) Optional – If specified, execute the command from the specified directory.
- Command (String) Required – The command to execute.
- Wait For Close (Boolean) Optional – If true wait until a ‘close’ event is emitted. If false waits until an ‘exit’ event is emitted instead. Default is false.
- Shell Type (Options) Optional – For linux specifies whether to use bin/sh or bin/bash as the shell. For windows only default cmd.exe is available. Possible values: Default | sh | bash.
- For linux default shell is sh.
- Don’t use sh or bash shell on Windows agents!
Method: Execute Multiple Commands
Execute multiple commands from shell.
Parameters
- Commands (Text) Required – The commands to execute. To enter multiple commands separate each with a new line.
Method: Remote Command Execution
Execute the specified command on the shell of the specified remote host, using SSH.
Parameters
- Key Path (String) Required – The path of the key to use to authenticate with to remote server using SSH.
- Remote User (String) Required – The SSH username to use to authenticate to the remote host.
- Remote Address (String) Required – The URL of the host to execute the command on.
- Port (String) Optional – The port used to connect with SSH to the remote host.
- Command (String) Required – The command to execute on the remote host.
Method: Execute Command Multiple Times
Execute the specified command the specified number of times.
Parameters
- Command (String) Required – The command to execute.
- Number Of Times (String) Required – Number of times to execute the command.
Method: Execute windows interactive
Execute desktop interactive commands while running an agent as a windows service.
Parameters
- Command (String) Required – The command to execute.
- Working Directory (String) Optional – If specified, execute the command from the specified directory.