cURL
curl --request POST \ --url https://api.example.com/api/bash/start_bash_command \ --header 'Content-Type: application/json' \ --data ' { "command": "<string>", "cwd": "<string>", "timeout": 300 } '
{ "command": "<string>", "cwd": "<string>", "timeout": 300, "kind": "BashCommand", "id": "<string>", "timestamp": "2023-11-07T05:31:56Z" }
Execute a bash command in the background
The bash command to execute
The current working directory
The max number of seconds a command may be permitted to run.
Successful Response
"BashCommand"
Was this page helpful?