Mwinelands strace foo: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 9: Line 9:




  strace -Ff -s512 -Tt -o My-strace-results -p `cat pid.log`
  strace -f -s512 -tt -o My-strace-results -yy -p `cat pid.log`

Latest revision as of 00:30, 16 June 2018

Here is the gold

if ( $_SERVER['REMOTE_ADDR'] == '10.30.4.32' ) {
      $file = 'pid.log';
      $current = getmypid();
      file_put_contents($file, $current);
      sleep(7);
}


strace -f -s512 -tt -o My-strace-results -yy -p `cat pid.log`