Background Job

Background Job

dylan-gluck

Execute shell commands asynchronously in the background and manage them with full process lifecycle control. Monitor output, send input, and kill jobs as needed.

10550 views6Local (stdio)

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

Running long build processes or test suitesManaging development servers and servicesAutomating deployment and CI/CD workflowsInteractive shell session management
Full process lifecycle managementReal-time stdout/stderr monitoringInteractive stdin support

Tools (7)

list_jobs

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_job_status

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_job_output

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

tail_job_output

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_command

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

Alternatives