ispy

Monitor the output of terminals and processes.

  • Owner: dellis23/ispy
  • Platform:
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

ispy

ispy is a python tool for monitoring the output of terminals and processes.

Demo

ispy watching a bash session that lists some files and opens vim:

ispy demo

The same thing, using strace:

strace watching writes demo

Installation

pip install ispy

Alternatively, if you aren't a Python person or don't want to install it
(since it must be run as root), you can download a fully packaged
pex file and run without
installing:

wget https://github.com/dellis23/ispy/blob/master/bin/pex/ispy.pex?raw=true -O ispy; chmod +x ispy

Usage

# ispy <pid_to_watch>

Use Cases

  • Watching someone else's terminal
  • Watching the output of a backgrounded process

Notes

Not intended for production!

It's probably buggy.

This was mainly an exercise in learning about ptrace for myself. I
haven't done anything more than smoke testing on a couple of
operating systems.

This uses the same system call as strace (ptrace), which is heavy-handed
and has a performance impact. It is not recommended to use in production or
against mission-critical applications. It's also written in Python, so it's even slower.

Supported OSs

This has been tested as working on:

  • Ubuntu
  • CentOS

This has been tested as not working on:

  • OSX

Thanks

Thanks to the creator and maintainers of python-ptrace; this project depends on it.

Main metrics

Overview
Name With Ownerdellis23/ispy
Primary LanguagePython
Program languagePython (Language Count: 2)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2015-12-20 22:02:40
Pushed At2015-12-22 17:19:12
Last Commit At2015-12-22 09:19:11
Release Count0
用户参与
Stargazers Count1k
Watchers Count39
Fork Count39
Commits Count16
Has Issues Enabled
Issues Count4
Issue Open Count2
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private