Mwinelands strace foo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Here is the gold | Here is the gold | ||
if ( $_SERVER['REMOTE_ADDR'] == '10.30. | if ( $_SERVER['REMOTE_ADDR'] == '10.30.4.32' ) { | ||
$file = 'pid.log'; | $file = 'pid.log'; | ||
$current = getmypid(); | $current = getmypid(); |
Revision as of 22:22, 1 October 2017
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 -Ff -s512 -Tt -o My-strace-results -p `cat pid.log`