All Projects → ianmiell → Autotrace

ianmiell / Autotrace

Runs a process, and gives you the output along with other telemetry on the process, all in one terminal window.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Autotrace

Dbgchild
Debug Child Process Tool (auto attach)
Stars: ✭ 145 (+113.24%)
Mutual labels:  automation, debugging-tool
Paramiko Tutorial
📡🐍SSH & SCP in Python with Paramiko
Stars: ✭ 65 (-4.41%)
Mutual labels:  automation
Apple Automation
iOS/macOS 自动化,效率玩法探索。
Stars: ✭ 60 (-11.76%)
Mutual labels:  automation
Webterminal
ssh rdp vnc telnet sftp bastion/jump web putty xshell terminal jumpserver audit realtime monitor rz/sz 堡垒机 云桌面 linux devops sftp websocket file management rz/sz otp 自动化运维 审计 录像 文件管理 sftp上传 实时监控 录像回放 网页版rz/sz上传下载/动态口令 django
Stars: ✭ 1,124 (+1552.94%)
Mutual labels:  automation
Ai Platform
An open-source platform for automating tasks using machine learning models
Stars: ✭ 61 (-10.29%)
Mutual labels:  automation
Kube Score
Kubernetes object analysis with recommendations for improved reliability and security
Stars: ✭ 1,128 (+1558.82%)
Mutual labels:  automation
Botsharp
The Open Source AI Chatbot Platform Builder in 100% C# Running in .NET Core with Machine Learning algorithm.
Stars: ✭ 1,103 (+1522.06%)
Mutual labels:  automation
Midichlorian
A Visual Studio extension that allows you to write code and automate the IDE using MIDI musical instruments.
Stars: ✭ 65 (-4.41%)
Mutual labels:  automation
Ansible Kafka
Ansible Kafka role
Stars: ✭ 64 (-5.88%)
Mutual labels:  automation
Robin
Robin is a logging library for Bundle data passed between Activities and fragments. It also provides a callback to send screen views of user visited pages to your analytics client
Stars: ✭ 63 (-7.35%)
Mutual labels:  debugging-tool
Resume Builder
Resume Builder is a free open-source project that allows anyone to easily maintain and build any kind of resume.
Stars: ✭ 62 (-8.82%)
Mutual labels:  automation
Stonic
Stonic Application
Stars: ✭ 61 (-10.29%)
Mutual labels:  automation
Centos7 Cis
Ansible CentOS 7 - CIS Benchmark Hardening Script
Stars: ✭ 64 (-5.88%)
Mutual labels:  automation
Kube Gen
Generate files from Kubernetes events
Stars: ✭ 59 (-13.24%)
Mutual labels:  automation
Automation
code generator
Stars: ✭ 65 (-4.41%)
Mutual labels:  automation
Forked Daapd Card
forked daapd card for Home Assistant Lovelace UI
Stars: ✭ 60 (-11.76%)
Mutual labels:  automation
Autodock
autodock is a Daemon for Docker Automation that helps to build automated Docker based infrastructure by integrating with Docker events
Stars: ✭ 61 (-10.29%)
Mutual labels:  automation
Bosco
A microservice helper
Stars: ✭ 63 (-7.35%)
Mutual labels:  automation
Flyte
Flyte binds together the tools you use into easily defined, automated workflows
Stars: ✭ 67 (-1.47%)
Mutual labels:  automation
Passh
sshpass is broken by design
Stars: ✭ 65 (-4.41%)
Mutual labels:  automation

autotrace

Runs a process, and gives you the output along with other telemetry on the process, all in one terminal window.

Here's me seeing what ping google.com (after 'forgetting' to run it under autotrace) does by looking at strace and tcpdump, with the command:

autotrace

You can also run:

autotrace 'ping google.com' 'strace -p PID' 'any other commands' ...

Demo

See here for more.

Features:

  • Pause program in-flight to see what's going on

  • Supply PID to pane's command and it gets the main pid sub'd in (see strace in the example above)

  • Colorised, multi-pane output

  • Output of all commands captured to files (in /tmp/tmpautotrace/PID/*)

  • Raise PR if you want other features

Install

# Requires:
# python (2 or 3)
# pip
pip install autotrace

Examples

Mac example:

$ sudo autotrace \
    'find /' \
    'dtruss -f -p PID' \
    'iostat 1'

PID is replaced with the PID of the main (-c) command

Linux example with strace and vmstat:

$ sudo autotrace \
    'find /' \
    'strace -p PID' \
    'vmstat 1'

Linux example with strace and tcpdump:

$ sudo autotrace \
     'nmap localhost' \
     'strace -p PID' \
     'tcpdump -XXs 20000'

Example with while true script to iterate output:

$ sudo autotrace \
    'nmap localhost' \
    'strace -p PID' \
    'tcpdump -XXs 20000' \
    'bash -c "while true; do free; sleep 5; done"'

Linux example with more than four panes that can be cycled through by hitting 'm':

$ sudo autotrace \
    'nmap localhost' \
    'strace -p PID' \
    'tcpdump -XXs 20000' \
    'bash -c "while true; do free; sleep 5; done"' \
    'bash -c "while true; do lsof -p PID | tail -5; sleep 5; done"' \

A (Linux) monster:

$ sudo autotrace \
    'nmap localhost' \
    'strace -p PID' \
    'tcpdump -XXs 20000' \
    'bash -c "while true; do free; sleep 5; done"' \
    'bash -c "while true; do lsof -p PID | tail -5; sleep 5; done"' \
    'bash -c "while true; do pstree -p PID | tail -5; sleep 5; done"' \
    'bash -c "while true; do cat /proc/interrupts; sleep 1; done"'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].