Mwinelands strace foo

From Cheatsheet
Revision as of 01:51, 30 April 2016 by Admin (talk | contribs)
Jump to navigation Jump to search

Here is the gold

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


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