Secator docs
  • GETTING STARTED
    • Introduction
    • Installation
    • CLI Usage
    • Library usage
    • Configuration
    • Examples
      • 5 minutes secator session
  • RUNNER OPTIONS
    • Global options
    • Meta options
    • Input formats
    • Output options
  • IN-DEPTH
    • Philosophy & design
    • Distributed runs with Celery
    • Concepts
      • Output types
      • Proxies
      • Exporters
      • Runners
      • Drivers
      • Profiles
    • Deployment
  • For developers
    • Development setup
    • Writing tasks
      • Integrating an external command
        • Parsing JSON lines
        • Parsing raw standard output
        • Parsing output files
        • Example: integrating ls
        • Example: cat hunters
      • Integrate custom Python code [WIP]
      • Advanced options
    • Writing workflows
    • Writing scans [WIP]
Powered by GitBook
On this page

Was this helpful?

  1. For developers
  2. Writing tasks

Advanced options

There are additional class options and functions you can specify in the task definition class, based on which runner is used.


Command runner

  • shell (bool, default: False): Run subprocess.Popen with shell=True (dangerous !).

  • cwd (str, default: None): Command current working directory.

  • encoding (dict, default: utf-8): Output encoding.

  • opt_prefix (str, default: -): Change the prefix used to specify command options.

  • version_flag (str, default: None): The version flag. Defaults to {opt_prefix}version.

  • ignore_return_code (bool, default: False): Ignore the command return code (useful if your command has non-standard return codes).


PreviousIntegrate custom Python code [WIP]NextWriting workflows

Last updated 7 months ago

Was this helpful?