{"id":1902,"date":"2015-02-20T05:52:01","date_gmt":"2015-02-20T05:52:01","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1902"},"modified":"2015-02-20T05:52:01","modified_gmt":"2015-02-20T05:52:01","slug":"check-the-time-of-a-running-process","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/20\/check-the-time-of-a-running-process\/","title":{"rendered":"Check the time of a running process"},"content":{"rendered":"<p>Find the process<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ntop\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND\n12399 root      20   0  120m 3040 1316 R 100.0  0.1  21488:30 perl\n 1083 root      20   0 10404  728  644 R 98.7  0.0  23601:08 libcrypto.b\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nps aux | grep\n\n\n<\/pre>\n<p>Find the process<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nroot     12399 99.9  0.0 123316  3040 ?        R    Feb05 21490:06 perl -n -e \/\\b\\S+\\@(btinternet).\\S+\\b\/ &amp;&amp; print $&amp;,&quot;\\n&quot;;  \/var\/lib\/yum\/yumdb\/c\/fcb244c0a5e60a026aed0bc937e76c6b01b4\n\n<\/pre>\n<p>Note the time<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nFeb05 21490:06 \n\n<\/pre>\n<p>Time is in minutes<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nps -eo pid,etime | awk &#039;\/^12399\/ {print $2}&#039;\n14-22:24:24\n<\/pre>\n<p>14 days, 22 hours, 24 minutes<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find the process top PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 12399 root 20 0 120m 3040 1316 R 100.0 0.1 21488:30 perl 1083 root 20 0 10404 728 644 R 98.7 0.0 23601:08 libcrypto.b ps aux | grep Find the process root 12399 99.9 0.0 123316 3040 ? R &#8230; <a title=\"Check the time of a running process\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/20\/check-the-time-of-a-running-process\/\" aria-label=\"Read more about Check the time of a running process\">Read more<\/a><\/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-1902","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1902","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=1902"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1902\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}