Mwinelands strace foo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Here is the gold | Here is the gold | ||
if ( $_SERVER['REMOTE_ADDR'] == '10.30.4. | if ( $_SERVER['REMOTE_ADDR'] == '10.30.4.32' ) { | ||
$file = 'pid.log'; | $file = 'pid.log'; | ||
$current = getmypid(); | $current = getmypid(); | ||
Line 9: | Line 9: | ||
strace - | 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`