{"id":1115,"date":"2025-05-16T00:08:47","date_gmt":"2025-05-15T23:08:47","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1115"},"modified":"2025-05-16T00:11:25","modified_gmt":"2025-05-15T23:11:25","slug":"mwnci-getpname-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getpname-function\/","title":{"rendered":"Mwnci getpname() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>getpname<strong>([<em>integer<\/em>])<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>getpname()<\/i> function returns the process name of a given process id (Pid). If no Pid is given then the name of current process is returned.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"ps\")\r\nprintln(getpname(1))\r\nprintln(getpname())\r\n\r\n\r\nsystemd\r\nmwnci<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax getpname([integer]) Description The getpname() function returns the process name of a given process id (Pid). If no Pid is given then the name of current process is returned. Example include(&#8220;ps&#8221;) println(getpname(1)) println(getpname()) systemd mwnci<\/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-1115","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1115","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=1115"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1115\/revisions"}],"predecessor-version":[{"id":1119,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1115\/revisions\/1119"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}