HomeTutorials › Tools: Background & Web
Tools: Background & Web

Reading Background Output / Killing

#058 0:15 Part of the Rysh video series

Check on a background job with bash_output, and shut it down with kill_shell.

Reading Background Output / Killing — 0:15 walkthrough

What you'll see

  1. Launch rysh (a background session already running); double-Esc to prompt mode.
  2. Prompt: "list my background sessions and show their latest output" -- bash_output reads the ring buffer or lists sessions (no approval).
  3. Prompt: "kill that background session" -- kill_shell terminates it and returns the final output.
  4. kill_shell is approval-gated; press y to confirm.

Commands shown

rysh
list my background sessions and show their latest output
kill that background session
y

Keys used

EnterEscape

Transcript

0:00Check on a background job with bash_output, and shut it down with kill_shell.

0:03Start rysh -- assume a background job is already running here.

0:08Double-press Escape for prompt mode.

0:13Ask what the background jobs are doing. The bash_output tool reads from a session's ring buffer, or lists every running session if you don't name one. It's read-only, so there's no approval prompt.

0:28When you're done, ask it to stop the job. The kill_shell tool terminates the session and returns its final output. Killing is approval-gated -- press y to confirm.

0:37Watch it, then end it -- full control over background work.

Key takeaway
bash_output reads or lists background sessions freely; kill_shell terminates and returns final output but is approval-gated.