| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | iotrace - Like strace enough to log STDIN STDOUT STDERR I/O | ||
| 8 | |||
| 9 | =head1 SYNOPSYS | ||
| 10 | |||
| 11 | $ iotrace -v -s9000 -tt -e execve,clone,openat,close,read,write -o /tmp/sort.iotrace sort < /etc/passwd > /tmp/passwd.sorted | ||
| 12 | $ iotrace -v -s9000 -o /tmp/perl.iotrace perl -n -e 'print if /./' < /etc/bashrc > /tmp/bashrc.nonblanklines.txt | ||
| 13 | $ diff -wui /etc/bashrc /tmp/bashrc.nonblanklines.txt | ||
| 14 | |||
| 15 | =cut | ||
| 16 | |||
| 17 | 46 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 46 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 46 | ▶ | use IO::Trace qw(iotrace); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 46 | iotrace; | |