# yujqiao/catproc

Print the output of a running process

Repository: https://github.com/yujqiao/catproc
Canonical: https://ross.abutalabs.com/products/catproc
Language: Rust
License: GPL-3.0
License Family: copyleft
Last push: 2022-07-27T12:28:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1502, "days_push": 1498, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1193, forks 26 (observed 2026-08-28T04:03:56.444500+00:00)

## What it is
catp is a Rust CLI utility that prints the output of an already-running process by using ptrace to intercept write syscalls. It lets you recover stdout/stderr from processes redirected to /dev/null without restarting them.

## Use cases
- capture output of a process redirected to /dev/null
- see where a running process is printing
- recover stdout from a long-running process without restarting it
- debug a process whose output went to an unknown location
- inspect write syscalls of a live process

## When to choose
- you need output from a process that is already running and cannot be restarted
- you are on x86_64 Linux and have ptrace/root privileges
- you want a lightweight single-binary tool with no setup

## When to avoid
- you are not on x86_64 Linux
- you cannot run with ptrace privileges (usually root)
- the target process is IO-sensitive since ptrace slows down syscalls
- you need to capture output going forward with low overhead rather than a one-off peek

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, cli, logging
- domain: developer-tools, operating-systems
- platform: cli, rust
- tags: ptrace, process-debugging, stdout-capture, system-internals, command-line, linux

## Member repositories
- yujqiao/catproc (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.444500+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:26.743819+00:00, confidence not recorded.
  - readme: https://github.com/yujqiao/catproc (fetched 2026-08-28T04:03:56.444500+00:00, sha f43ad011d968)
- Data as of 2026-08-30T08:39:29.467469+00:00.
