• Stars
    star
    1,169
  • Rank 39,968 (Top 0.8 %)
  • Language
    Rust
  • License
    GNU General Publi...
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Print the output of a running process

catp

GitHub release (latest SemVer) GitHub Workflow Status (branch)

Print the output of a running process

screenshot

catp 0.2.0
Print the output of a running process

USAGE:
    catp [OPTIONS] <PID>

ARGS:
    <PID>    PID of the process to print

OPTIONS:
    -h, --help       Print help information
    -v, --verbose    Print more verbose information to stderr
    -V, --version    Print version information

Why

Sometimes a process is redirected to /dev/null because we don't expect to check its output. However, we may regret that decision and don't want to restart the process.

Or we just don't know where a running process is printing to.

Then just type catp!

How It Works

catp uses ptrace to intercept syscall and extracts data from the syscall write. So it should work for most applications. Since it slows down the syscall, it may impact the performance of IO-sensitive applications.

catp requires ptrace privilege to run, which in most systems means root.

Get Started

Download the binary from release. The one with gnu should work with a really recent glibc version. If that's not working, try the musl one.

Platform

Currently only x86_64 Linux is supported.

More Repositories

1

rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Rust
9,262
star
2

DungeonRush

πŸ‘ΎπŸ A opensource game inspired by Snake, written in pure C with SDL
C
1,985
star
3

hnu-courses-to-ics

δ»ŽζΉ–ε—ε€§ε­¦ζ•™εŠ‘η³»η»ŸδΈ­ε―Όε‡Ί ics 课葨
Python
11
star
4

simple-shell

A simple shell implementation with built-in commands and coreutils
C
10
star
5

cppc

A skeleton C compiler in C++
C++
10
star
6

acm-code

Rapiz's Competitive Programming Codebase
C++
6
star
7

typography

A Hexo theme focused on clean format and elegant reading experience.
CSS
5
star
8

xv6-labs-2020

C
5
star
9

ss-pcap-visual

A Simple and Stupid Pcap Visualization application, with some fancy charts.
C++
5
star
10

Rapiz1

3
star
11

feeluown-notification-plugin

Show desktop notifications for FeelUOwn
Python
3
star
12

rustlings

Rust
3
star
13

clox

Lox Interpreter in C++
C++
2
star
14

gsoc2020-chapel-data-structures

GSoC 2020 Project - Chapel - Sequential Data Structures
Chapel
2
star
15

rust-switchable-transport-example

a example echo server in Rust, that shows how to implement switchable transport using generics
Rust
2
star
16

acit

Your Online Judge submissions crawler
Python
2
star
17

tiny_webdisk

C
2
star
18

chapel-envVariables

A module to manage environment variables for Chapel
Chapel
1
star
19

ics2020-pa

C
1
star
20

mpristest

minimal example for reproducing the issue in mpris-service
Python
1
star
21

openwrt-build

Shell
1
star
22

jos

C
1
star
23

chapel-heap

A module for chapel
Chapel
1
star
24

rapiz.me

GitHub Pages repository
HTML
1
star
25

monitor-site

A minimalistic uptime web dashboard
JavaScript
1
star