Silent Module

Bash scripting and system resource monitoring

Available Tools

  • silent_script - Execute bash scripts with arguments, env vars, and timeout
  • silent_resources - Monitor GPU/RAM/CPU usage with detailed process info

Features

  • Execute bash scripts with custom arguments and environment variables
  • Configurable timeout for script execution
  • Support for nvidia-smi for GPU monitoring
  • Process filtering and sorting by resource usage
  • Detailed CPU, RAM, and GPU utilization metrics

Example: Execute Bash Script

{
  "name": "silent_script",
  "arguments": {
    "script": "#!/bin/bash\necho 'Hello World'\nls -la",
    "timeout": 30
  }
}

Example: Monitor System Resources

{
  "name": "silent_resources",
  "arguments": {
    "detailed": true,
    "process_filter": "rust"
  }
}

This monitors system resources and filters processes by name, providing detailed information about CPU, RAM, and GPU usage.

Script Execution Options

  • script: The bash script content to execute
  • args: Optional array of arguments to pass to the script
  • env: Optional object of environment variables
  • timeout: Maximum execution time in seconds (default: 60)

Advanced Script Example

{
  "name": "silent_script",
  "arguments": {
    "script": "#!/bin/bash\nfor i in \"$@\"; do echo \"Arg: $i\"; done",
    "args": ["arg1", "arg2", "arg3"],
    "env": {
      "MY_VAR": "custom_value"
    },
    "timeout": 10
  }
}