执行 .p 文件后,使用 proenv 未在 test.out 文件中获取输出

NOT getting output in test.out file using proenv, after executing .p file

我是进步的新手。我只是按照下面的 kb 文章,但我没有得到所需的输出。 https://knowledgebase.progress.com/articles/Knowledge/How-to-write-a-p-script-to-execute-via-proenv-to-produce-a-stderr-stdout-in-a-file

  1. 我用以下代码创建了一个 test.p 文件:
MESSAGE ENTRY (1, "This is a test") VIEW-AS ALERT-BOX.
MESSAGE "Hello there" VIEW-AS ALERT-BOX.
DISPLAY "hello world".
  1. chmod +x test.p
  2. 然后在 proenv i 运行 下面的命令
proenv>proenv -b -p test.p > test.out
  1. 我只在 test.out 文件
  2. 的输出下方找到
$ cat test.out

      DLC: /opt/progress/117
   WRKDIR: /opt/progress/wrk_117
      OEM: /opt/progress/oemgmt_117
OEMWRKDIR: /opt/progress/wrk_oemgmt_117

Inserting /opt/progress/117/bin to beginning of path and
setting the current directory to /opt/progress/wrk_117.

OpenEdge Release 11.7.5 as of Fri Jun  7 08:29:03 EDT 2019

我没有找到哪里做错了。感谢您在这方面的帮助。谢谢。

尝试

_progres -b -p test.p > test.out

bpro -p test.p > test.out

proenv 启动 shell 并设置了 DLC 和其他变量。 Proenv 不直接执行 ABL 代码。