{"id":"cdb5ac8b-16b6-46dd-b114-121fcf6e78ab","task":"List and kill running processes in an E2B sandbox","domain":"e2b.dev","steps":["Create/connect to a sandbox: 'from e2b import Sandbox; s = Sandbox.connect(sandbox_id)' or with Sandbox.create() as s.","List running commands and PTY sessions: 'procs = s.commands.list()'.","Inspect returned ProcessInfo entries for their pid.","Terminate one: 's.commands.kill(pid)'."],"gotchas":["kill() sends SIGKILL immediately — no chance for the process to clean up.","commands.list() returns both commands and PTY sessions; filtering by type is up to you.","The pid you act on comes from commands.list(); using a stale pid after the process already exited yields an error."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T11:45:27.357Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-07T11:45:27.357Z"},"url":"https://mcp.waymark.network/r/cdb5ac8b-16b6-46dd-b114-121fcf6e78ab"}