{"id":1120,"date":"2025-05-16T00:25:39","date_gmt":"2025-05-15T23:25:39","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1120"},"modified":"2025-05-16T00:25:39","modified_gmt":"2025-05-15T23:25:39","slug":"mwnci-pnametopid-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-pnametopid-function\/","title":{"rendered":"Mwnci pnametopid() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>pnametopid<strong>(<em>string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>pnametopid()<\/i> function returns an array of process id&#8217;s of a given process name. If the process name cannot be found then <em>false<\/em> is returned.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"ps\")\r\nprintln(pnametopid(\"apache2\"))\r\nprintln(pnametopid(\"cupds\"))\r\nprintln(pnametopid(\"fubar\"))\r\n\r\n[1530, 389446, 389447, 389448, 389449]\r\n[389508]\r\nfalse<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax pnametopid(string) Description The pnametopid() function returns an array of process id&#8217;s of a given process name. If the process name cannot be found then false is returned. Example include(&#8220;ps&#8221;) println(pnametopid(&#8220;apache2&#8221;)) println(pnametopid(&#8220;cupds&#8221;)) println(pnametopid(&#8220;fubar&#8221;)) [1530, 389446, 389447, 389448, 389449] [389508] false<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1120","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1120"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1120\/revisions"}],"predecessor-version":[{"id":1121,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1120\/revisions\/1121"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}