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

问题描述

我是一个进步的新手。我只是关注下面的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中,我在命令下运行
proenv>proenv -b -p test.p > test.out
  1. 我只在test.out文件输出下面找到了
$ 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启动带有DLC和其他变量集的shell。 Proenv不会直接执行ABL代码。