
Background Job
Execute shell commands asynchronously in the background and manage them with full process lifecycle control. Monitor output, send input, and kill jobs as needed.
What it does
- Execute shell commands as background jobs
- Monitor job status and output in real-time
- Send input to running processes via stdin
- Kill or terminate background processes
- List all active and completed jobs
- Tail recent output from job logs
Best for
Tools (7)
List all background jobs with their status. Returns a list of all background jobs, including their job ID, status, command, and start time. Jobs are sorted by start time (newest first).
Get the current status of a background job. Args: job_id: The UUID of the job to check Returns: The current status of the job (running, completed, failed, or killed)
Get the complete stdout and stderr output of a job. Args: job_id: The UUID of the job to get output from Returns: ProcessOutput containing the complete stdout and stderr content
Get the last N lines of stdout and stderr from a job. Args: job_id: The UUID of the job to tail lines: Number of lines to return (1-1000, default 50) Returns: ProcessOutput containing the last N lines of stdout and stderr
Execute a command as a background job and return job ID. Args: command: Shell command to execute in the background Returns: ExecuteOutput containing the job ID (UUID) of the started job