{"id":12094,"date":"2022-03-20T01:36:04","date_gmt":"2022-03-20T05:36:04","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=12094"},"modified":"2022-03-20T02:18:04","modified_gmt":"2022-03-20T06:18:04","slug":"python-cgi-bin","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=12094","title":{"rendered":"Python cgi-bin"},"content":{"rendered":"\n<p>Since Hostmonster (NYGC) cannot really catch up with the new Python, I could only do Python, the older version, via <a href=\"https:\/\/masnun.com\/2010\/03\/11\/using-python-on-hostmonster-umbrahosting-and-other-general-shared-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">cgi-bin<\/a>. And use <a href=\"https:\/\/www.linuxshelltips.com\/run-python-script-in-php\/\" target=\"_blank\" rel=\"noreferrer noopener\">PHP's <\/a><em>exec('python test.py')<\/em>; to do the trick. test.py's permission would have to be set to 755.<\/p>\n\n\n\n<p>I've created a test folder Python in NYGC's server to test these things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Hostmonster (NYGC) cannot really catch up with the new Python, I could only do Python, the older version, via cgi-bin. And use PHP's exec('python test.py'); to do the trick. test.py's permission would have to be set to 755. I've &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=12094\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-12094","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/12094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12094"}],"version-history":[{"count":2,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions"}],"predecessor-version":[{"id":12097,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions\/12097"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12094"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}