Shell activity

class zambeze.campaign.activities.shell.ShellActivity(name: str, files: list[str], command: str, arguments: list[str], logger: Logger | None = None, campaign_id: str | None = None, origin_agent_id: str | None = None, message_id: str | None = None, **kwargs)

Bases: Activity

A Unix Shell script/command activity.

Parameters:
  • name (str) – Campaign activity name.

  • files (Optional[list[str]]) – List of file URIs.

  • command (Optional[str]) – Action’s command.

  • arguments (Optional[list[str]]) – List of arguments.

  • logger (Optional[logging.Logger]) – The logger where to log information/warning or errors.

generate_message() AbstractMessage