## Sync `computers.exec.sync(strid, ExecSyncParams**kwargs) -> ExecSyncResponse` **post** `/computers/{id}/exec/sync` Execute a shell command and wait for completion, returning buffered stdout/stderr. ### Parameters - `id: str` - `command: Optional[str]` - `cwd: Optional[str]` - `env: Optional[Dict[str, str]]` - `timeout_seconds: Optional[int]` ### Returns - `class ExecSyncResponse: …` - `exit_code: Optional[int]` - `stderr: Optional[str]` - `stdout: Optional[str]` ### Example ```python import os from tzafon import Lightcone client = Lightcone( api_key=os.environ.get("TZAFON_API_KEY"), # This is the default and can be omitted ) response = client.computers.exec.sync( id="id", ) print(response.exit_code) ```