Skip to content

v1k1nghawk/otpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

otpt

  • Purpose: Process syscalls tracing (with primary focus on a process output).

  • Usage: otpt PID [SYSCALL|--all]

    PID is a process identifier (get it by ps afx command).
    SYSCALL is a Linux system call (get it by man syscalls command). Alternativelly, one can use --all arg that shows all of a process syscalls.
    Without SYSCALL or --all, otpt utility shows a parameter of the write sycalls, which allows the utility to duplicate the entire output of the process with the specified PID.


  • Examples:

Example #1: otpt 28638 --all
Example #2: otpt 28638 openat
Example #3: otpt 28638

  • Internal force: Utility strace is used under the hood.