Skip to main content

run_command

AsyncMethod
This is a method of the SandboxProtocol class in the sandbox module.
Run a shell command in the sandbox.

Signature

async def run_command(
        &self,
        command: &str,
        limits: Option<ResourceLimits>,
        env: Option<HashMap<String, String>>,
        working_dir: Option<String>,
    ) -> Result<SandboxResult>

Parameters

command
&str
required
No description available.
limits
Option<ResourceLimits>
required
No description available.
env
Option<HashMap<String
required
No description available.
working_dir
Option<String>
required
No description available.

Returns

Returns
Result<SandboxResult>
The result of the operation.