{"id":8441,"date":"2021-09-19T08:56:20","date_gmt":"2021-09-19T00:56:20","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=8441"},"modified":"2021-09-30T09:41:30","modified_gmt":"2021-09-30T01:41:30","slug":"day8gbc%e4%b8%8a%e8%bf%90%e4%bd%9c%e7%9a%84hello-world","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=8441","title":{"rendered":"[day8]GBC\u4e0a\u8fd0\u4f5c\u7684Hello world!"},"content":{"rendered":"<h2>\u6587\u7ae0\u6765\u81ea\uff1a<a href=\"https:\/\/ithelp.ithome.com.tw\/users\/20051169\">iT \u90a6\u5e6b\u5fd9::\u4e00\u8d77\u5e6b\u5fd9\u89e3\u6c7a\u96e3\u984c\uff0c\u62ef\u6551 IT \u4eba\u7684\u4e00\u5929 (ithome.com.tw)<\/a><\/h2>\n<h2>GBC\u4e0a\u8fd0\u4f5c\u7684Hello world!<\/h2>\n<p>\u5728\u524d\u9762\u7ae0\u8282\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u5199\u8fc7 2 \u4e2a hello world\u4f5c\u4e1a\uff0c\u63a5\u4e0b\u6765\u8981\u5c06 hello world \u5448\u73b0\u5728\u6d4f\u89c8\u5668\u4e0a<\/p>\n<p>\u56de\u987e as.xcf \u7684\u914d\u7f6e\u4e2d\uff0c\u6709APPLICATION_LIST\u533a\u5757\uff0c\u53ef\u5728\u5185\u90e8\u6307\u5b9a\u89e6\u53d1\u7684\u4f5c\u4e1a\u3002\u56e0\u6b64\u53ef\u5229\u7528\u6b64\u65b9\u5f0f\u5c06\u5df2\u5b8c\u6210\u7684 hello world \u6302\u8f7d\u5230\u6d4f\u89c8\u5668\u4e0a (\u6ce8\u610f\u9700\u4f7f\u7528 MENU\u7248\u3002\u82e5\u4f7f\u7528\u80cc\u666fDISPLAY\u7248\uff0c\u8baf\u606f\u4f1a\u6389\u5165 fastcgidispatch \u7684 LOG \u5185)<\/p>\n<p>\u5fae\u8c03\u4e00\u4e0b\uff0c\u52a0\u4e0a\u00a0<a href=\"https:\/\/ithelp.ithome.com.tw\/articles\/10260708\" target=\"_blank\" rel=\"noopener noreferrer\">\u57fa\u672c\u6307\u4ee4<\/a>\u00a0\u4ecb\u7ecd\u7684ARG_VAL<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">MAIN\r\n  DEFINE ls_title STRING\r\n\r\n  #\u52a0\u4e0a\u53c2\u6570\u7684 hello world\r\n  LET ls_title = \"Hello World! \",ARG_VAL(1)\r\n\r\n  MENU ls_title\r\n     ON ACTION exit\r\n        EXIT MENU\r\n  END MENU\r\nEND MAIN<\/code><\/pre>\n<p>\u6267\u884c\u65f6\uff0c\u53ef\u52a0\u4e0a\u53c2\u6570\u6210\u4e3a\uff1a<\/p>\n<p>fglrun hello alex<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"149\" height=\"171\" class=\"wp-image-8442\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/unnamed-file-315.png\" alt=\"\u56fe\u5f62\u7528\u6237\u754c\u9762, \u5e94\u7528\u7a0b\u5e8f \u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" \/><\/p>\n<h3>\u914d\u7f6e\u5230as.xcf<\/h3>\n<p>\u6253\u5f00\u60a8\u6240\u7ef4\u62a4\u7684 as.xcf (\u82e5\u4e0d\u6e05\u695a as.xcf \u53ef\u53c2\u8003\u00a0<a href=\"https:\/\/ithelp.ithome.com.tw\/articles\/10260594\" target=\"_blank\" rel=\"noopener noreferrer\">GAS\u5e94\u7528\u670d\u52a1\u5668\u7684\u542f\u52a8<\/a>\u00a0)\uff0c\u641c\u5bfb gwc-demo\uff0c\u8fd9\u4e00\u6bb5 APPLICATION_LIST \u662f\u6211\u4eec\u53ef\u4ee5\u53c2\u8003\u7684\u6837\u672c\uff0c\u590d\u5236\u4e00\u4efd\u5982\u4e0b<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">     &lt;APPLICATION Id=\"ithelp\" Parent=\"defaultwa\"&gt;\r\n        &lt;EXECUTION&gt;\r\n          &lt;PATH&gt;\/u1\/topprd4\/ithelp&lt;\/PATH&gt;  &lt;!-- \u6863\u6848\u8def\u5f84 --&gt;\r\n          &lt;MODULE&gt;hello.42m&lt;\/MODULE&gt;       &lt;!-- \u6267\u884c\u4f5c\u4e1a --&gt;\r\n        &lt;\/EXECUTION&gt;\r\n      &lt;\/APPLICATION&gt;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8bbe\u5b9a\u5b8c\u6210\u540e\uff0c\u91cd\u542f GAS \u670d\u52a1(\u770b\u662f httpdispatch \u6216 fastcgidispatch \u91cd\u542f\u8be5\u670d\u52a1\u5373\u53ef)<br \/>\n\u91cd\u542f\u540e\uff0c\u4ee5\u6d4f\u89c8\u5668\u8fde\u5165\u00a0<a href=\"http:\/\/xn--ip-7v5c08kxo1a:6394\/ua\/r\/ithelp\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/\u670d\u52a1\u5668ip:6394\/ua\/r\/ithelp<\/a><br \/>\n(\u82e5\u4e3a\u5d01\u5165\u5f0f\uff0c\u7ed1\u5b9a\u5728 wtopprd4 \u8def\u5f84\uff0c\u5219\u6539\u4e3a\u00a0<a href=\"http:\/\/xn--ip-7v5c08kxo1a\/wtopprd4\/ua\/r\/ithelp\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/\u670d\u52a1\u5668ip\/wtopprd4\/ua\/r\/ithelp<\/a>\u00a0)<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"504\" height=\"274\" class=\"wp-image-8443\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/unnamed-file-316.png\" alt=\"\u56fe\u5f62\u7528\u6237\u754c\u9762, \u5e94\u7528\u7a0b\u5e8f \u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" \/><\/p>\n<p>\u8bf4\u597d\u7684\u53c2\u6570\u5462 ?<\/p>\n<p>\u8981\u6253\u5f00\u53c2\u6570\u63a5\u6536\u7684\u529f\u80fd\uff0c\u9700\u8981\u5c06 as.xcf \u505a\u4e00\u4e0b\u5fae\u8c03\uff0c\u589e\u52a0 AllowUrlParameters=&#8221;TRUE&#8221; \u8bbe\u5b9a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">     &lt;APPLICATION Id=\"ithelp\" Parent=\"defaultwa\"&gt;\r\n        &lt;EXECUTION AllowUrlParameters=\"TRUE\"&gt;\r\n          &lt;PATH&gt;\/u1\/topprd4\/ithelp&lt;\/PATH&gt;  &lt;!-- \u6863\u6848\u8def\u5f84 --&gt;\r\n          &lt;MODULE&gt;hello.42m&lt;\/MODULE&gt;       &lt;!-- \u6267\u884c\u4f5c\u4e1a --&gt;\r\n        &lt;\/EXECUTION&gt;\r\n      &lt;\/APPLICATION&gt;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u91cd\u542f\u540e\uff0c\u5728\u7f51\u5740\u5217\u4e0a\u589e\u52a0 ?Arg=alex \u5c31\u53ef\u4f20\u5165\u53c2\u6570<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"219\" class=\"wp-image-8444\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/word-3.png\" alt=\"\u56fe\u5f62\u7528\u6237\u754c\u9762, \u5e94\u7528\u7a0b\u5e8f, Word \u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" \/><\/p>\n<h3>\u7b80\u5355\u7c97\u66b4\u7684\u91cd\u542f<\/h3>\n<p>\u8303\u4f8b\u4e3b\u673a\u4f7f\u7528 linux (\u4e00\u822c\u9f0e\u65b0\/\u9f0e\u6377\u7684 T \u5e73\u53f0\u5ba2\u6237\u73af\u5883)\uff0c\u4f9d\u7167\u4e0b\u5217\u6b65\u9aa4<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"178\" class=\"wp-image-8445\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/unnamed-file-317.png\" alt=\"\u6587\u672c \u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" srcset=\"https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/unnamed-file-317.png 1024w, https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/unnamed-file-317-768x134.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ol>\n<li>\u5148\u4f7f\u7528 ps \u67e5\u8be2\u670d\u52a1 (\u8303\u4f8b\u4e3a\u5d01\u5165\u5f0f) Process ID<\/li>\n<li>\u4f7f\u7528 kill -9 Process_id \u6e05\u7406\u6389\u539f\u6709\u7684 fastcgidispatch<\/li>\n<li>\u91cd\u542f\u670d\u52a1\uff0c\u8bb0\u5f97\u6307\u5b9a\u8bfb\u53d6\u7684 as.xcf \u6863\u6848\u8def\u5f84\uff0c\u5e76\u52a0\u5165\u80cc\u666f\u6267\u884c\u7b26\u53f7<\/li>\n<\/ol>\n<h3>\u4e0d\u60f3\u4e00\u76f4\u91cd\u542f\u670d\u52a1<\/h3>\n<p>\u82e5\u6bcf\u6b21\u5747\u6267\u884cas.xcf\u7684\u5f02\u52a8\u624d\u80fd\u6302\u8f7d\u7a0b\u5e8f\uff0c\u5219\u8868\u793a\u5f53\u6709\u65b0\u7684\u4f5c\u4e1a\u65f6\u7f51\u7ad9\u90fd\u5fc5\u987b\u76f8\u5e94\u505c\u670d\u52a1\u3002\u8fd9\u4e0d\u662f\u4e00\u4e2a\u597d\u65b9\u6cd5\uff0c\u4e0b\u5217\u8c03\u6574\u4e00\u4e0b\u8303\u4f8b\uff0c\u8ba9\u670d\u52a1\u4e0d\u7528\u91cd\u542f\uff0c\u53ea\u9700\u8981\u4fee\u6539\u81ea\u5df1\u7684\u90e8\u5206\u5373\u53ef\u4f7f\u7528<\/p>\n<h4>as.xcf \u7684\u8c03\u6574<\/h4>\n<p>\u6ce8\u610f !! \u5c06\u4e4b\u524d\u65b0\u589e\u7684 APPLICATION \u8bbe\u5b9a\u8bb0\u5f97\u5148\u6e05\u9664\u6389<\/p>\n<p>\u627e\u5bfb\u8303\u4f8b\u300eId=&#8221;idp&#8221;\u300f\u5e76\u8c03\u6574\u5982\u4e0b\uff1a(\u6ce8\u610f\uff1aidp\u53ea\u662f\u53c2\u8003\u8303\u4f8b\uff0c\u5b9e\u9645\u662f\u65b0\u589e\u4e0b\u65b9\u4e00\u884c)<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">&lt;!-- default group for external applications --&gt;\r\n\r\n&lt;GROUP Id=\"_default\"&gt;$(res.path.app)&lt;\/GROUP&gt;\r\n\r\n&lt;GROUP Id=\"idp\"&gt;$(res.path.gip.starter)&lt;\/GROUP&gt;\r\n\r\n&lt;GROUP Id=\"admin\"&gt;$(res.path.idp.applications)&lt;\/GROUP&gt;\r\n\r\n&lt;GROUP Id=\"ithelp\"&gt;\/u1\/topprd4\/ithelp&lt;\/GROUP&gt; &lt;!-- \u65b0\u589e\u672c\u884c --&gt;<\/code><\/pre>\n<p>\u8c03\u6574\u5b8c\u6210\u540e\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u3002<\/p>\n<p>\u6b64\u65f6\u5728 fastcgidispatch\u65b0\u589e\u865a\u62df\u8def\u5f84 ithelp \u6307\u5411\u5b9e\u4f53\u8def\u5f84 \/u1\/topprd4\/ithelp<br \/>\n\u8be5\u8def\u5f84\u5373\u4e3a\u4e0a\u8ff0 hello world \u7a0b\u5e8f\u7684\u8def\u5f84 (\u8be5\u7a0b\u5e8f\u547d\u540d\u4e3a hello.4gl\uff0c\u7f16\u8bd1\u540e\u4e3a hello.42m)<\/p>\n<p>\u65b0\u589e\u914d\u7f6e\u6587\u4ef6\u6848 demo.xcf<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\r\n&lt;APPLICATION Parent=\"defaultgwc\"&gt;\r\n  &lt;EXECUTION AllowUrlParameters=\"TRUE\"&gt;\r\n    &lt;ENVIRONMENT_VARIABLE Id=\"FGLPROFILE\" Concat=\"APPEND\"&gt;\/u1\/genero4\/fgl\/etc\/fglprofile&lt;\/ENVIRONMENT_VARIABLE&gt;\r\n    &lt;PATH&gt;\/u1\/topprd4\/ithelp&lt;\/PATH&gt;  &lt;!-- \u6863\u6848\u8def\u5f84 --&gt;\r\n    &lt;MODULE&gt;hello.42m&lt;\/MODULE&gt;       &lt;!-- \u6267\u884c\u4f5c\u4e1a --&gt;\r\n  &lt;\/EXECUTION&gt;\r\n&lt;\/APPLICATION&gt;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8bbe\u5b9a\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u00a0<a href=\"http:\/\/xn--ip-7v5c08kxo1a:6394\/ua\/r\/ithelp\/demo?Arg=alex\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/\u670d\u52a1\u5668ip:6394\/ua\/r\/ithelp\/demo?Arg=alex<\/a>\u00a0\u6267\u884c\u51fa\u5982\u4e0b\u753b\u9762<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"223\" class=\"wp-image-8446\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/word-4.png\" alt=\"\u56fe\u5f62\u7528\u6237\u754c\u9762, \u5e94\u7528\u7a0b\u5e8f, Word \u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" srcset=\"https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/word-4.png 806w, https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2021\/09\/word-4-768x212.png 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/p>\n<p>\u81f3\u6b64\uff0c\u540e\u7eed\u5199\u51fa\u6765\u7684\u5404\u5f0f 4GL \u7a0b\u5e8f\u5747\u5e94\u8be5\u53ef\u4ee5\u5728\u7f51\u9875\u4e0a\u6267\u884c\u3002<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.hefeiyu.com\">\u8d6b\u975e\u57df<\/a> &raquo; <a href=\"https:\/\/www.hefeiyu.com\/?p=8441\">[day8]GBC\u4e0a\u8fd0\u4f5c\u7684Hello world!<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6765\u81ea\uff1aiT \u90a6\u5e6b\u5fd9::\u4e00\u8d77\u5e6b\u5fd9\u89e3\u6c7a\u96e3\u984c\uff0c\u62ef\u6551 IT \u4eba\u7684\u4e00\u5929 (ithome.com.tw) GBC\u4e0a\u8fd0\u4f5c\u7684Hello world! \u5728\u524d\u9762\u7ae0\u8282\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u5199\u8fc7 2 \u4e2a hello world\u4f5c\u4e1a\uff0c\u63a5\u4e0b\u6765\u8981\u5c06 hello world \u5448\u73b0\u5728\u6d4f\u89c8\u5668 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[490,26],"tags":[1033,1034,1035],"class_list":["post-8441","post","type-post","status-publish","format-standard","hentry","category-490","category-4gl","tag-gbc","tag-hello","tag-world"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/8441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8441"}],"version-history":[{"count":4,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/8441\/revisions"}],"predecessor-version":[{"id":8537,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/8441\/revisions\/8537"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}