{"id":2611,"date":"2015-09-01T03:53:20","date_gmt":"2015-09-01T03:53:20","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2611"},"modified":"2015-09-01T03:53:20","modified_gmt":"2015-09-01T03:53:20","slug":"strace","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/09\/01\/strace\/","title":{"rendered":"Strace"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nuser=`pwd | cut -d \\\/ -f 3`; x=1; while &#x5B; $x = 1 ]; do process=`pgrep -n -u $user php`; if &#x5B; $process ]; then x=0; fi;  done; strace -vvttf -s 256  -p $process 2&gt;&amp;1| tee strace \n<\/pre>\n<p>General examples: <a href=\"http:\/\/www.thegeekstuff.com\/2011\/11\/strace-examples\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.thegeekstuff.com\/2011\/11\/strace-examples\/<\/a><br \/>\nSome more real-world: <a href=\"http:\/\/www.rrsoft.co\/2013\/12\/09\/using-strace-and-lsof-to-track-down-process-hangs-2\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.rrsoft.co\/2013\/12\/09\/using-strace-and-lsof-to-track-down-process-hangs-2\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>user=`pwd | cut -d \\\/ -f 3`; x=1; while &#x5B; $x = 1 ]; do process=`pgrep -n -u $user php`; if &#x5B; $process ]; then x=0; fi; done; strace -vvttf -s 256 -p $process 2&gt;&amp;1| tee strace General examples: http:\/\/www.thegeekstuff.com\/2011\/11\/strace-examples\/ Some more real-world: http:\/\/www.rrsoft.co\/2013\/12\/09\/using-strace-and-lsof-to-track-down-process-hangs-2\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2611","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2611"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2611\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}