问题描述
我是一个进步的新手。我只是关注下面的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
MESSAGE ENTRY (1,"This is a test") VIEW-AS ALERT-Box.
MESSAGE "Hello there" VIEW-AS ALERT-Box.
disPLAY "hello world".
- chmod + x test.p
- 然后在proenv中,我在命令下运行
proenv>proenv -b -p test.p > 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代码。