How can I run strace forever
Updated -
The following script will create a ring of N files (N provided as an argument) with the names /tmp/cycle-strace-PID-N. PID (provided as an argument) is the the process ID of a process and N ranges from 1-N. Each file is the output of running strace over the PID for S seconds, with S provided as an argument. At the end of each run of strace a test is conducted to determine if the script should ...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.