Command execution (cmd)
The cmd
allows you to run shell commands remotely and capture their output.
Available tasks
cmd:run
Execute a shell command on a remote agent and return the complete output.
Syntax
jack run <agent> cmd:run "<command>" [options...]
Example
jack run agent1 cmd:run "ls -la /tmp"
Sample Output
agent1
→ output:
|
total 0
drwxrwxrwt 1 root root 32 Sep 10 15:01 .
drwxr-xr-x 1 root root 24 Sep 10 15:01 ..
srwxr-xr-x 1 root root 0 Sep 10 15:01 plugin1142520441